X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2Fhelp.pl;h=cc9eee3a1cf3d32e58d3b090212c373b0614d619;hb=refs%2Fheads%2Fmaster;hp=d3a2b2683dcb6abd826fabddac51c3ac255f5588;hpb=9c1c3d6366ec08c767170e5ba478ac34a563032d;p=spider.git diff --git a/cmd/help.pl b/cmd/help.pl index d3a2b268..cc9eee3a 100644 --- a/cmd/help.pl +++ b/cmd/help.pl @@ -7,7 +7,7 @@ # # Copyright (c) 1998 - Dirk Koopman G1TLH # -# $Id$ +# # my ($self, $line) = @_; @@ -31,7 +31,7 @@ $lang = 'en' if !$lang; # The fields are:- privilege level, full command name, short description # -$DB::single = 1; +#$DB::single = 1; my $defh = new IO::File; @@ -59,7 +59,7 @@ my $in; $line =~ s{[^\w/]}{}g; $line =~ s{/}{.*/}g; $line =~ s/^\s+//g; -$line =~ s/\s+$//g; +$line =~ s/[\s\r]+$//g; $line = "help" if $line =~ /^\s*$/; # sort out aliases @@ -72,6 +72,7 @@ if ($h) { foreach $in (<$h>) { next if $in =~ /^\#/; chomp $in; + $in =~ s/\r$//; if ($in =~ /^===/) { last if $state == 2; # come out on next command $in =~ s/=== //;