source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Correct handling of trailing punctuation in MDOC_DELIM blk_full
@ 2010-07-01 21:12 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2010-07-01 21:12 UTC (permalink / raw)
  To: source

Log Message:
-----------
Correct handling of trailing punctuation in MDOC_DELIM blk_full HEADs.
The bug was uncovered by SYNOPSIS .Nm as this happened to be the first
block with this particular combination of properties.
Found the hard way by kristaps@ in NetBSD gcc-contrib(1),
fix by me.

Modified Files:
--------------
    mdocml:
        mdoc_macro.c

Revision Data
-------------
Index: mdoc_macro.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_macro.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.88 -r1.89
--- mdoc_macro.c
+++ mdoc_macro.c
@@ -1025,6 +1025,9 @@ blk_full(MACRO_PROT_ARGS)
 		lac = ARGS_ERROR == ac ? ARGS_PEND : ac;
 		ac = mdoc_args(m, line, pos, buf, tok, &p);
 
+		if (ARGS_PUNCT == ac)
+			break;
+
 		if (ARGS_ERROR == ac)
 			return(0);
 
--
 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:[~2010-07-01 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01 21:12 mdocml: Correct handling of trailing punctuation in MDOC_DELIM blk_full 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).