2. fix console.pl to show blank lines more reliably.
[spider.git] / perl / DXCommandmode.pm
index 6efd8cee4f47294833534aa170ee62c19f9d78f4..58b4296934c5a5ae0c6d44d81a5394ea01d9401c 100644 (file)
@@ -89,7 +89,7 @@ sub start
        $self->{priv} = $user->priv || 0;
        $self->{lang} = $user->lang || $main::lang || 'en';
        $self->{pagelth} = $user->pagelth || 20;
-       ($self->{width}) = $line =~ /width=(\d+)/;
+       ($self->{width}) = $line =~ /width=(\d+)/; $line =~ s/\s*width=\d+\s*//;
        $self->{width} = 80 unless $self->{width} && $self->{width} > 80;
        $self->{consort} = $line;       # save the connection type