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:
parent
92be45d1be
commit
33f373fbd5
@ -17,7 +17,7 @@ while (<FILEIN>)
|
||||
{
|
||||
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; }
|
||||
$_ =~ s/^(\s*)\s\*\s/$1/;
|
||||
$found = 'sorta' if $_ =~ s/\s*\*\/$//;
|
||||
@ -32,9 +32,9 @@ while (<FILEIN>)
|
||||
$_ = "$_\n$dash\n";
|
||||
$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';
|
||||
}
|
||||
next if not $found; $found = undef if $found eq 'sorta';
|
||||
|
Loading…
Reference in New Issue
Block a user