* mdocml: Block closing macros do not allocate a new node but finish an
@ 2013-09-15 18:26 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-09-15 18:26 UTC (permalink / raw)
To: source
Log Message:
-----------
Block closing macros do not allocate a new node but finish an existing
one, so they miss the clearing of MDOC_NEWLINE in mdoc.c, node_alloc().
Consequently, MDOC_NEWLINE must be cleared before processing the next
macro on the same line.
This fixes horizontal spacing for input lines beginning like .Oc Ns ...
Issue found by Franco Fichtner <franco at lastsummer dot de>
while working on DragonFly mandoc integration.
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.121
retrieving revision 1.122
diff -Lmdoc_macro.c -Lmdoc_macro.c -u -p -r1.121 -r1.122
--- mdoc_macro.c
+++ mdoc_macro.c
@@ -792,6 +792,9 @@ blk_exp_close(MACRO_PROT_ARGS)
return(0);
flushed = 1;
}
+
+ mdoc->flags &= ~MDOC_NEWLINE;
+
if ( ! mdoc_macro(mdoc, ntok, line, lastarg, pos, buf))
return(0);
break;
--
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:[~2013-09-15 18:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-15 18:26 mdocml: Block closing macros do not allocate a new node but finish an 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).