doc/rdsrc: don't treat \# as a comment marker if preceeded by \

We need to be able to let \\# represent a literal \#, rather than
be \ followed by a comment.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2017-08-16 21:13:23 -07:00
parent 2998226fa1
commit dd47d57e4d

View File

@ -237,7 +237,7 @@ sub get_para($_) {
$para = undef;
}
if (/\S/) {
s/\\#.*$//; # strip comments
s/(^|[^\\])\\#.*$/\1/; # strip comments
$para .= " " . $_;
}
}