aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_term.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-04-06 07:27:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-04-06 07:27:42 +0000
commita597f1a29b369c2c740c417626bfa20242c09d67 (patch)
tree3c30157647a62a742cfac59296dd2772961b5f74 /mdoc_term.c
parent91247546027e6bc2d0aa0b60ccebdc2d07dab0db (diff)
downloadmandoc-a597f1a29b369c2c740c417626bfa20242c09d67.tar.gz
mandoc-a597f1a29b369c2c740c417626bfa20242c09d67.tar.zst
mandoc-a597f1a29b369c2c740c417626bfa20242c09d67.zip
`Fl' now correctly suppresses the trailing space if followed by macros on the same line.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r--mdoc_term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 6197f10d..2b591f98 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.113 2010/04/03 14:25:12 kristaps Exp $ */
+/* $Id: mdoc_term.c,v 1.114 2010/04/06 07:27:42 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -1070,10 +1070,10 @@ termp_fl_pre(DECL_ARGS)
term_fontpush(p, TERMFONT_BOLD);
term_word(p, "\\-");
- /* A blank `Fl' should incur a subsequent space. */
-
if (n->child)
p->flags |= TERMP_NOSPACE;
+ else if (n->next && n->next->line == n->line)
+ p->flags |= TERMP_NOSPACE;
return(1);
}