From d502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c 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 | 8 ++++---- 1 file 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 * @@ -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 v1.2.3-56-ge451