diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-08 16:22:04 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-03-08 16:22:04 +0000 |
commit | 2c2cab8eb564315678f34841e5cda810f00ddcf0 (patch) | |
tree | 1984baf61405502b36d9d4804780d0afd4bca16d | |
parent | c3b19f4aeeab34b70784875fb9ac21067a5a5bc8 (diff) | |
download | mandoc-2c2cab8eb564315678f34841e5cda810f00ddcf0.tar.gz |
In .nf mode, use the MAN_LINE flag to detect input line breaks
instead of the man_node line member. This is required to preserve
line breaks contained in user-defined macros called in .nf mode.
Found in a code audit triggered by fixing a similar issue in .TP.
-rw-r--r-- | man_term.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1045,7 +1045,7 @@ out: * more specific than this. */ if (MANT_LITERAL & mt->fl && ! (TERMP_NOBREAK & p->flags) && - (NULL == n->next || n->next->line > n->line)) { + (NULL == n->next || MAN_LINE & n->next->flags)) { rm = p->rmargin; rmax = p->maxrmargin; p->rmargin = p->maxrmargin = TERM_MAXMARGIN; |