diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-08-15 18:46:30 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-08-15 18:46:30 +0000 |
commit | 9b56240aaf710bf79ffa7df42f13b47fbc4fe7b1 (patch) | |
tree | 0f2e6000435d4257dffa311e3d2400b1f2c44a85 /compat_vasprintf.c | |
parent | 6ecd9c5caba944d910343802c058940234492e5a (diff) | |
download | mandoc-9b56240aaf710bf79ffa7df42f13b47fbc4fe7b1.tar.gz |
Simplify handling of no-fill mode in man(7) by inspecting NODE_NOFILL
at the beginning of the node handler, in the same way as it is done
in the mdoc(7) node handler.
As a side effect, this also fixes a bug: if an input line contained
nothing but an escape sequence producing no output whatsoever (for
example, \fR), the old code incorrectly emitted a blank line anyway,
whereas the new code only emits such a blank link if the input line
actually produces output (even invisible zero-width output). To make
the distinction, the ASCII_NBRZW -> lastcol -> term_newln() mechanism
established in term.c rev. 1.289 is used.
Diffstat (limited to 'compat_vasprintf.c')
0 files changed, 0 insertions, 0 deletions