summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {