aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-07-07 14:34:11 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-07-07 14:34:11 +0000
commit234bdeea7ecb7af55757791d9dcd02e1980d5e00 (patch)
treea4278a61838b5761371938ea3cd7321673bd84dd /html.c
parentd8af0bd95a40f030963ca03609cd8394fc074df6 (diff)
downloadmandoc-234bdeea7ecb7af55757791d9dcd02e1980d5e00.tar.gz
mandoc-234bdeea7ecb7af55757791d9dcd02e1980d5e00.tar.zst
mandoc-234bdeea7ecb7af55757791d9dcd02e1980d5e00.zip
Fix handling of the `\c' escape in -T[x]html.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/html.c b/html.c
index ab096b4d..6ee11b5e 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.148 2011/07/04 09:42:38 kristaps Exp $ */
+/* $Id: html.c,v 1.149 2011/07/07 14:34:11 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -513,9 +513,11 @@ print_text(struct html *h, const char *word)
print_otag(h, TAG_I, 0, NULL);
assert(word);
- if ( ! print_encode(h, word, 0))
+ if ( ! print_encode(h, word, 0)) {
if ( ! (h->flags & HTML_NONOSPACE))
h->flags &= ~HTML_NOSPACE;
+ } else
+ h->flags |= HTML_NOSPACE;
if (h->metaf) {
print_tagq(h, h->metaf);