source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Minor bug fix:  When .Pp rewinds .Nm, rewind the whole block,
@ 2015-05-01 15:28 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2015-05-01 15:28 UTC (permalink / raw)
  To: source

Log Message:
-----------
Minor bug fix:  When .Pp rewinds .Nm, rewind the whole block,
not just the body.  In some unusual edge cases, this caused 
the .Pp to become a sibling of the .Nm body inside the .Nm block.

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

Revision Data
-------------
Index: mdoc_macro.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/mdoc_macro.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.197 -r1.198
--- mdoc_macro.c
+++ mdoc_macro.c
@@ -1399,7 +1399,7 @@ in_line_eoln(MACRO_PROT_ARGS)
 		if (mdoc->next == ROFF_NEXT_SIBLING)
 			n = n->parent;
 		if (n->tok == MDOC_Nm)
-			rew_last(mdoc, mdoc->last->parent);
+			rew_last(mdoc, n->parent);
 	}
 
 	if (buf[*pos] == '\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:[~2015-05-01 15:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-01 15:28 mdocml: Minor bug fix: When .Pp rewinds .Nm, rewind the whole block, 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).