diff options
author | 2014-12-02 10:07:17 +0000 | |
---|---|---|
committer | 2014-12-02 10:07:17 +0000 | |
commit | 64c3401c9d7b678fca49a2777f3b21e6ef0c011c (patch) | |
tree | ec9c83f9c5154d0697d3c72c87996fcf8bf076f4 /usr.bin/mandoc/mdoc_html.c | |
parent | macro cleanup; kaspars at bankovskis dot net (diff) | |
download | wireguard-openbsd-64c3401c9d7b678fca49a2777f3b21e6ef0c011c.tar.xz wireguard-openbsd-64c3401c9d7b678fca49a2777f3b21e6ef0c011c.zip |
Fix the implementation and documentation of \c (continue text input line).
In particular, make it work in no-fill mode, too.
Reminded by Carsten dot Kunze at arcor dot de (Heirloom roff).
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 037c01d0f69..1b95dc47e92 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.90 2014/12/01 08:05:02 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.91 2014/12/02 10:07:17 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1199,7 +1199,8 @@ mdoc_bd_pre(MDOC_ARGS) default: break; } - if (nn->next && nn->next->line == nn->line) + if (h->flags & HTML_NONEWLINE || + (nn->next && ! (nn->next->flags & MDOC_LINE))) continue; else if (nn->next) print_text(h, "\n"); |