aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitfe05b565a018bd5034ccaf1b3ea0599e89302c20 (patch)
tree93390be9392a8f074eef0e19e96f004fb7e759e5 /html.c
parent8bc86dcb30b0c91240c4be7dd73585cfc36ae8f3 (diff)
downloadmandoc-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 'html.c')
-rw-r--r--html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.c b/html.c
index 000d9c8a..fe16224e 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.182 2014/12/01 04:34:06 schwarze Exp $ */
+/* $Id: html.c,v 1.183 2014/12/02 10:08:06 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011, 2012, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);