]> git.cameronkatri.com Git - mandoc.git/blobdiff - mdoc_term.c
"Groff allows the initial macro on a line to be delimited by a space of
[mandoc.git] / mdoc_term.c
index 57cf41ac280db85f54a4d9eaf0cd339946731ac2..6181cb87ff7e2009d5f0d2f244fce914b4a1417b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_term.c,v 1.179 2010/07/27 08:38:04 kristaps Exp $ */
+/*     $Id: mdoc_term.c,v 1.180 2010/08/07 17:11:17 schwarze Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -1653,9 +1653,11 @@ termp_bd_pre(DECL_ARGS)
        p->rmargin = p->maxrmargin = TERM_MAXMARGIN;
 
        for (nn = n->child; nn; nn = nn->next) {
-               if (nn->prev && nn->prev->line < nn->line)
-                       term_newln(p);
                print_mdoc_node(p, pair, m, nn);
+               if (nn->next && nn->next->line == nn->line)
+                       continue;
+               term_flushln(p);
+               p->flags |= TERMP_NOSPACE;
        }
 
        p->tabwidth = tabwidth;