From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 96762f96; for ; Sat, 4 Apr 2015 08:54:13 -0500 (EST) Date: Sat, 4 Apr 2015 08:54:13 -0500 (EST) Message-Id: <11840061396229624783.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Don't allow breaking the output line after hyphens following X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 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). Modified Files: -------------- mdocml: roff.c Revision Data ------------- Index: roff.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/roff.c,v retrieving revision 1.263 retrieving revision 1.264 diff -Lroff.c -Lroff.c -u -p -r1.263 -r1.264 --- roff.c +++ roff.c @@ -1128,6 +1128,8 @@ roff_parsetext(struct buf *buf, int pos, esc = mandoc_escape((const char **)&p, NULL, NULL); if (esc == ESCAPE_ERROR) break; + while (*p == '-') + p++; continue; } else if (p == start) { p++; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv