X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/1b939f3fc9a59c4dd5ac04a9c995a8457d4ee32a..c110d5fd7019990a27401a4d70bd34106e9d66a6:/html.c diff --git a/html.c b/html.c index 070562fb..24c17fb2 100644 --- a/html.c +++ b/html.c @@ -1,4 +1,4 @@ -/* $Id: html.c,v 1.108 2010/07/21 20:35:03 kristaps Exp $ */ +/* $Id: html.c,v 1.110 2010/07/26 22:26:05 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -417,6 +417,11 @@ print_otag(struct html *h, enum htmltag tag, printf(" "); } + if ( ! (h->flags & HTML_NONOSPACE)) + h->flags &= ~HTML_NOSPACE; + else + h->flags |= HTML_NOSPACE; + /* Print out the tag name and attributes. */ printf("<%s", htmltags[tag].name); @@ -544,7 +549,8 @@ print_text(struct html *h, const char *word) assert(word); if ( ! print_encode(h, word, 0)) - h->flags &= ~HTML_NOSPACE; + if ( ! (h->flags & HTML_NONOSPACE)) + h->flags &= ~HTML_NOSPACE; /* * Note that we don't process the pipe: the parser sees it as