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