diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-04 13:53:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-04 13:53:42 +0000 |
commit | 1eb78526299027f34b6c7cc779729565d0c752aa (patch) | |
tree | 9aef8b208bf1302703b3415b86f89ae84701ff62 | |
parent | d4849c125a2536970d94e48746b9c97cddeee0c1 (diff) | |
download | mandoc-1eb78526299027f34b6c7cc779729565d0c752aa.tar.gz |
Don't allow breaking the output line after hyphens following escape
sequences. Improves tic(1), sxpm(1), and a few Perl manuals.
Quirk found by naddy@ in milter-greylist(8).
-rw-r--r-- | roff.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1128,6 +1128,8 @@ roff_parsetext(struct buf *buf, int pos, int *offs) esc = mandoc_escape((const char **)&p, NULL, NULL); if (esc == ESCAPE_ERROR) break; + while (*p == '-') + p++; continue; } else if (p == start) { p++; |