summaryrefslogtreecommitdiffstats
path: root/man2html/abbrev.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-03-28 11:54:45 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-03-28 11:54:45 -0700
commitb71246fa13d1bf81bb7dce4dee4c6b40dcd0f120 (patch)
treeae5810e2f51ed9e0c0282a0787ff6443956298cd /man2html/abbrev.c
parentf684e2326a56b2e8d648f99113460de602e65691 (diff)
downloadman-b71246fa13d1bf81bb7dce4dee4c6b40dcd0f120.tar.gz
man-b71246fa13d1bf81bb7dce4dee4c6b40dcd0f120.tar.bz2
man-b71246fa13d1bf81bb7dce4dee4c6b40dcd0f120.zip
Fix bug handling escape code at end of a line.
When scan_troff expands an escape, it calls FLUSHIBP, which nukes all previous context. If the escape is subsequently followed by a newline, it looks like the newline at the start of a line, which is consumed. There is a subtlety there that we also want to preserve a newline after an escape in preformatted mode. This fix addresses at least two issues in the TXR Man page. One is that occurrences of the \*(TL and \*(TX at the ends of lines are causing run-on output: the expansion gets glued to the word which follows in the next line. The other issue is that in some code exmaple blocks, lines ending in a backslash (encoded as the \e escape) are being joined.
Diffstat (limited to 'man2html/abbrev.c')
0 files changed, 0 insertions, 0 deletions