summaryrefslogtreecommitdiffstatshomepage
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
commitd502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c (patch)
treec129ec2a6cff6e6b273a35afb8d240ceb8158c5e
parentb7321ad35a6dbbfd5b61781b7cd128a4ad6e4cae (diff)
downloadmandoc-d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c.tar.gz
mandoc-d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c.tar.zst
mandoc-d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c.zip
Fix of fix of -Thtml nospace.
-rw-r--r--html.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/html.c b/html.c
index f749ed44..ff71f253 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.85 2009/11/14 11:58:36 kristaps Exp $ */
+/* $Id: html.c,v 1.86 2009/11/14 12:00:24 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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) {