aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.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_html.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_html.c')
-rw-r--r--mdoc_html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 05cafa8d..43abe55d 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.57 2010/04/05 08:51:56 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.58 2010/04/06 07:27:42 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);
}