summaryrefslogtreecommitdiffstats
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
parent58e74b4a43bf6e0d03cc6ad02bc4a0c771fb95e8 (diff)
downloadmandoc-c1fc26cea90ddef77e9961215dcae4b7ea52f643.tar.gz
`Fl' now correctly suppresses the trailing space if followed by macros on the same line.
-rw-r--r--mdoc_html.c4
-rw-r--r--mdoc_term.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 9d03a7fe..bfcb5674 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -666,10 +666,10 @@ mdoc_fl_pre(MDOC_ARGS)
print_text(h, "\\-");
- /* A blank `Fl' should incur a subsequent space. */
-
if (n->child)
h->flags |= HTML_NOSPACE;
+ else if (n->next && n->next->line == n->line)
+ h->flags |= HTML_NOSPACE;
return(1);
}
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);
}