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.5/8.14.5) with ESMTP id s7GJocEv000670 for ; Sat, 16 Aug 2014 15:50:38 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s7GJocdR010361; Sat, 16 Aug 2014 15:50:38 -0400 (EDT) Date: Sat, 16 Aug 2014 15:50:38 -0400 (EDT) Message-Id: <201408161950.s7GJocdR010361@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: If a stray .It follows .El, we are no longer in the list, even X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- If a stray .It follows .El, we are no longer in the list, even though the list is still the last processed macro. This fixes a regression introduced in mdoc_macro.c rev. 1.138: Ulrich Spoerlein reports that various of their kernel manuals trigger assertions. 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.140 retrieving revision 1.141 diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.140 -r1.141 --- mdoc_macro.c +++ mdoc_macro.c @@ -1041,7 +1041,8 @@ blk_full(MACRO_PROT_ARGS) if (tok == MDOC_It) { for (n = mdoc->last; n; n = n->parent) - if (n->tok == MDOC_Bl) + if (n->tok == MDOC_Bl && + ! (n->flags & MDOC_VALID)) break; if (n == NULL) { mandoc_vmsg(MANDOCERR_IT_STRAY, mdoc->parse, -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv