source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: If a stray .It follows .El, we are no longer in the list, even
@ 2014-08-16 19:52 schwarze
  0 siblings, 0 replies; 2+ messages in thread
From: schwarze @ 2014-08-16 19:52 UTC (permalink / raw)
  To: source

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 <uqs at FreeBSD> reports that various of their
kernel manuals trigger assertions.

Tags:
----
VERSION_1_12

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.140.2.1
diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.140 -r1.140.2.1
--- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* mdocml: If a stray .It follows .El, we are no longer in the list, even
@ 2014-08-16 19:50 schwarze
  0 siblings, 0 replies; 2+ messages in thread
From: schwarze @ 2014-08-16 19:50 UTC (permalink / raw)
  To: source

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 <uqs at FreeBSD> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-16 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-16 19:52 mdocml: If a stray .It follows .El, we are no longer in the list, even schwarze
  -- strict thread matches above, loose matches on Subject: below --
2014-08-16 19:50 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).