summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-02 10:08:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-02 10:08:06 +0000
commit110fb75482f7f2c0f483cf8b3643b20e6600a1c4 (patch)
tree39019d1d0c3ea61d852d9f5fdd3fee3b59fd9051 /html.c
parentefe93b8f37e682132d735c3ed77f4c64aedc5aef (diff)
downloadmandoc-110fb75482f7f2c0f483cf8b3643b20e6600a1c4.tar.gz
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 'html.c')
-rw-r--r--html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/html.c b/html.c
index e3d66cc7..7368c841 100644
--- a/html.c
+++ b/html.c
@@ -562,8 +562,9 @@ print_text(struct html *h, const char *word)
if ( ! print_encode(h, word, 0)) {
if ( ! (h->flags & HTML_NONOSPACE))
h->flags &= ~HTML_NOSPACE;
+ h->flags &= ~HTML_NONEWLINE;
} else
- h->flags |= HTML_NOSPACE;
+ h->flags |= HTML_NOSPACE | HTML_NONEWLINE;
if (h->metaf) {
print_tagq(h, h->metaf);