diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 15:03:43 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-07 15:03:43 +0000 |
commit | bf71220a9f906bbab505a3c280f4f04c52f383ff (patch) | |
tree | 035b22036bf0db2d6ae34945a4918f9be56692f5 /mdoc_term.c | |
parent | 21ddb69332fe4768c88b2034020de35ac5ae1a53 (diff) | |
download | mandoc-bf71220a9f906bbab505a3c280f4f04c52f383ff.tar.gz mandoc-bf71220a9f906bbab505a3c280f4f04c52f383ff.tar.zst mandoc-bf71220a9f906bbab505a3c280f4f04c52f383ff.zip |
no need to skip content before first section header
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c index 74f86dfb..4629e43a 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.270 2014/07/03 23:24:56 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.271 2014/07/07 15:03:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -275,8 +275,11 @@ terminal_mdoc(void *arg, const struct mdoc *mdoc) term_begin(p, print_mdoc_head, print_mdoc_foot, meta); - if (n->child) + if (n->child) { + if (MDOC_Sh != n->child->tok) + term_vspace(p); print_mdoc_nodelist(p, NULL, meta, n->child); + } term_end(p); } |