summaryrefslogtreecommitdiffstats
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
commitc1fc26cea90ddef77e9961215dcae4b7ea52f643 (patch)
tree54c87614e1d465e39950e208d21f38db9833d48d /mdoc_term.c
parent58e74b4a43bf6e0d03cc6ad02bc4a0c771fb95e8 (diff)
downloadmandoc-c1fc26cea90ddef77e9961215dcae4b7ea52f643.tar.gz
`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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_term.c b/mdoc_term.c
index 7e397362..d1de3107 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -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);
}