diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-23 00:08:57 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-07-23 00:08:57 +0000 |
commit | a41b969da761feea5444b03064068a11e9fd23d6 (patch) | |
tree | c602960e0d19e9af540c4a1e0fe232224e033aec /html.c | |
parent | f64bbf4dd52ba1784bd58528b49c64503687d995 (diff) | |
download | mandoc-a41b969da761feea5444b03064068a11e9fd23d6.tar.gz |
Add support for `Sm' in -T[x]html -mdoc.
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -417,6 +417,9 @@ print_otag(struct html *h, enum htmltag tag, printf(" "); } + if ( ! (h->flags & HTML_NONOSPACE)) + h->flags &= ~HTML_NOSPACE; + /* Print out the tag name and attributes. */ printf("<%s", htmltags[tag].name); @@ -544,7 +547,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 |