From e4ebb5bcdf052d8f914e859f05f4bdebce821b00 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sat, 14 Nov 2009 12:00:24 +0000 Subject: Fix of fix of -Thtml nospace. --- html.c | 6 +++--- 1 file 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) { -- cgit