diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2013-09-15 18:48:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2013-09-15 18:48:31 +0000 |
commit | 65b766571856f5cfee4214a504db5177a5232a3a (patch) | |
tree | 5c9fdf320372d38901e69309d07dfdb46b4d8403 /mdoc_man.c | |
parent | bcae865b5f52b7036c73ea5e88895b9b7e8c6b1e (diff) | |
download | mandoc-65b766571856f5cfee4214a504db5177a5232a3a.tar.gz mandoc-65b766571856f5cfee4214a504db5177a5232a3a.tar.zst mandoc-65b766571856f5cfee4214a504db5177a5232a3a.zip |
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.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r-- | mdoc_man.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.51 2013/06/02 18:16:57 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.52 2013/09/15 18:48:31 schwarze Exp $ */ /* * Copyright (c) 2011, 2012, 2013 Ingo Schwarze <schwarze@openbsd.org> * @@ -553,7 +553,7 @@ man_mdoc(void *arg, const struct mdoc *mdoc) 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; |