From 234bdeea7ecb7af55757791d9dcd02e1980d5e00 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 7 Jul 2011 14:34:11 +0000 Subject: Fix handling of the `\c' escape in -T[x]html. --- html.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html.c b/html.c index ab096b4d..6ee11b5e 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.148 2011/07/04 09:42:38 kristaps Exp $ */ +/* $Id: html.c,v 1.149 2011/07/07 14:34:11 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -513,9 +513,11 @@ print_text(struct html *h, const char *word) print_otag(h, TAG_I, 0, NULL); assert(word); - if ( ! print_encode(h, word, 0)) + if ( ! print_encode(h, word, 0)) { if ( ! (h->flags & HTML_NONOSPACE)) h->flags &= ~HTML_NOSPACE; + } else + h->flags |= HTML_NOSPACE; if (h->metaf) { print_tagq(h, h->metaf); -- cgit v1.2.3-56-ge451