diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-07 14:34:11 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-07 14:34:11 +0000 |
commit | 234bdeea7ecb7af55757791d9dcd02e1980d5e00 (patch) | |
tree | a4278a61838b5761371938ea3cd7321673bd84dd | |
parent | d8af0bd95a40f030963ca03609cd8394fc074df6 (diff) | |
download | mandoc-234bdeea7ecb7af55757791d9dcd02e1980d5e00.tar.gz mandoc-234bdeea7ecb7af55757791d9dcd02e1980d5e00.tar.zst mandoc-234bdeea7ecb7af55757791d9dcd02e1980d5e00.zip |
Fix handling of the `\c' escape in -T[x]html.
-rw-r--r-- | html.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |