1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Get rid of extraneous spaces left in the output. I have no idea if

asciidoc is sensitive enough to fail on these.
This commit is contained in:
Russ Rowan 2006-01-08 13:05:11 -05:00
parent 92be45d1be
commit 33f373fbd5

View File

@ -17,7 +17,7 @@ while (<FILEIN>)
{ {
if ($found) if ($found)
{ {
if ($_ =~ /^\s+\*\s$/) { next if $first; $_ =~ s/\*// if not $first; } if ($_ =~ /^\s+\*\s$/) { next if $first; $_ =~ s/\s\*// if not $first; }
if ($_ =~ /^\s\*+\/$/ or $_ !~ /^\s/) { $found = undef; next; } if ($_ =~ /^\s\*+\/$/ or $_ !~ /^\s/) { $found = undef; next; }
$_ =~ s/^(\s*)\s\*\s/$1/; $_ =~ s/^(\s*)\s\*\s/$1/;
$found = 'sorta' if $_ =~ s/\s*\*\/$//; $found = 'sorta' if $_ =~ s/\s*\*\/$//;
@ -32,9 +32,9 @@ while (<FILEIN>)
$_ = "$_\n$dash\n"; $_ = "$_\n$dash\n";
$first = 1; $first = 1;
} }
elsif ($_ =~ /\s*([A-Z0-9_]+),\s*\/\*::\s*(.*)\s*\*\/$/) elsif ($_ =~ /\s*([A-Z0-9_]+),\s*\/\*::\s*(.*)\s+\*\/$/)
{ {
$_ =~ s/\s*([A-Z0-9_]+),\s*\/\*::\s*(.*)\s*\*\/$/id[$1]::\n $2/; $_ =~ s/\s*([A-Z0-9_]+),\s*\/\*::\s*(.*)\s+\*\/$/id[$1]::\n $2/;
$found = 'sorta'; $found = 'sorta';
} }
next if not $found; $found = undef if $found eq 'sorta'; next if not $found; $found = undef if $found eq 'sorta';