From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o61LC04o031024 for ; Thu, 1 Jul 2010 17:12:00 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o61LC0X1023703; Thu, 1 Jul 2010 17:12:00 -0400 (EDT) Date: Thu, 1 Jul 2010 17:12:00 -0400 (EDT) Message-Id: <201007012112.o61LC0X1023703@krisdoz.my.domain> 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: Correct handling of trailing punctuation in MDOC_DELIM blk_full X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 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