source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Use normal line macro recognition, do not attempt to roll your
@ 2013-09-15 18:48 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-09-15 18:48 UTC (permalink / raw)
  To: source

Log Message:
-----------
Use normal line macro recognition, do not attempt to roll your own.
This fixes horizontal spacing when an Ns macro follows a block-closing 
macro and the corresponding block-opening macro is not on the same line.

Modified Files:
--------------
    mdocml:
        mdoc_man.c

Revision Data
-------------
Index: mdoc_man.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_man.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -Lmdoc_man.c -Lmdoc_man.c -u -p -r1.51 -r1.52
--- mdoc_man.c
+++ mdoc_man.c
@@ -553,7 +553,7 @@ man_mdoc(void *arg, const struct mdoc *m
 static void
 print_node(DECL_ARGS)
 {
-	const struct mdoc_node	*prev, *sub;
+	const struct mdoc_node	*sub;
 	const struct manact	*act;
 	int			 cond, do_sub;
 
@@ -561,8 +561,7 @@ print_node(DECL_ARGS)
 	 * Break the line if we were parsed subsequent the current node.
 	 * This makes the page structure be more consistent.
 	 */
-	prev = n->prev ? n->prev : n->parent;
-	if (MMAN_spc & outflags && prev && prev->line < n->line)
+	if (MMAN_spc & outflags && MDOC_LINE & n->flags)
 		outflags |= MMAN_nl;
 
 	act = NULL;
--
 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:48 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:48 mdocml: Use normal line macro recognition, do not attempt to roll your 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).