summaryrefslogtreecommitdiffstats
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-14 12:00:24 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-14 12:00:24 +0000
commite4ebb5bcdf052d8f914e859f05f4bdebce821b00 (patch)
treefcdd58665276172f94a19278f81e5532fdc6d9c1 /html.c
parente97c3f3af85655664c79a59519735abc8776f110 (diff)
downloadmandoc-e4ebb5bcdf052d8f914e859f05f4bdebce821b00.tar.gz
Fix of fix of -Thtml nospace.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/html.c b/html.c
index 57316063..3d2e014e 100644
--- a/html.c
+++ b/html.c
@@ -372,11 +372,11 @@ print_text(struct html *h, const char *p)
if ( ! (h->flags & HTML_NOSPACE))
putchar(' ');
- h->flags &= ~HTML_NOSPACE;
h->flags &= ~HTML_NEWLINE;
- if (p)
- print_encode(h, p);
+ assert(p);
+ if ( ! print_encode(h, p))
+ h->flags &= ~HTML_NOSPACE;
if (*p && 0 == *(p + 1))
switch (*p) {