source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Don't allow breaking the output line after hyphens following
@ 2015-04-04 13:54 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-04-04 13:54 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-04 13:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-04 13:54 mdocml: Don't allow breaking the output line after hyphens following schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).