From 532d0bbf2d0b8fc89368559b5ed9db0ad323f032 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 7 Oct 2009 12:20:20 +0000 Subject: `Bd' literals in -Tascii -mdoc were losing the first line's newline. Fixed. --- mdoc_term.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 * @@ -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); -- cgit v1.2.3