version 1.1.1.1, 2013/07/22 08:25:55
|
version 1.1.1.2, 2014/06/15 19:46:04
|
Line 108 while (<STDIN>)
|
Line 108 while (<STDIN>)
|
|
|
# Handling .sp is subtle. If it is inside a literal section, do nothing if |
# Handling .sp is subtle. If it is inside a literal section, do nothing if |
# the next line is a non literal text line; similarly, if not inside a |
# the next line is a non literal text line; similarly, if not inside a |
# literal section, do nothing if a literal follows. The point being that | # literal section, do nothing if a literal follows, unless we are inside |
# the <pre> and </pre> that delimit literal sections will do the spacing. | # a .nf/.ne section. The point being that the <pre> and </pre> that delimit |
# Always skip if no previous output. | # literal sections will do the spacing. Always skip if no previous output. |
|
|
elsif (/^\.sp/) |
elsif (/^\.sp/) |
{ |
{ |
Line 123 while (<STDIN>)
|
Line 123 while (<STDIN>)
|
} |
} |
else |
else |
{ |
{ |
print TEMP "<br>\n<br>\n" if (!/^[\s.]/); | print TEMP "<br>\n<br>\n" if ($innf || !/^[\s.]/); |
} |
} |
redo; # Now process the lookahead line we just read |
redo; # Now process the lookahead line we just read |
} |
} |