diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-02 10:08:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-12-02 10:08:06 +0000 |
commit | fe05b565a018bd5034ccaf1b3ea0599e89302c20 (patch) | |
tree | 93390be9392a8f074eef0e19e96f004fb7e759e5 /mdoc_html.c | |
parent | 8bc86dcb30b0c91240c4be7dd73585cfc36ae8f3 (diff) | |
download | mandoc-fe05b565a018bd5034ccaf1b3ea0599e89302c20.tar.gz mandoc-fe05b565a018bd5034ccaf1b3ea0599e89302c20.tar.zst mandoc-fe05b565a018bd5034ccaf1b3ea0599e89302c20.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 'mdoc_html.c')
-rw-r--r-- | mdoc_html.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 706b0560..ca51049e 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.215 2014/12/01 08:05:52 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.216 2014/12/02 10:08:06 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -1201,7 +1201,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"); |