summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 12:20:20 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-07 12:20:20 +0000
commit532d0bbf2d0b8fc89368559b5ed9db0ad323f032 (patch)
tree09207426fd6380996fbafce93bcbc47cacbe9914
parent0309be4091771471f886a7c2b3616f21ebf0fdb7 (diff)
downloadmandoc-532d0bbf2d0b8fc89368559b5ed9db0ad323f032.tar.gz
mandoc-532d0bbf2d0b8fc89368559b5ed9db0ad323f032.tar.zst
mandoc-532d0bbf2d0b8fc89368559b5ed9db0ad323f032.zip
`Bd' literals in -Tascii -mdoc were losing the first line's newline. Fixed.
-rw-r--r--mdoc_term.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 644f1746..0a13e5a6 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.86 2009/10/03 19:02:45 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.87 2009/10/07 12:20:20 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1609,11 +1609,14 @@ termp_bd_pre(DECL_ARGS)
return(1);
for (nn = n->child; nn; nn = nn->next) {
+ p->flags |= TERMP_NOSPACE;
print_node(p, pair, m, nn);
if (NULL == nn->next)
continue;
if (nn->prev && nn->prev->line < nn->line)
term_flushln(p);
+ else if (NULL == nn->prev)
+ term_flushln(p);
}
return(0);