aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-23 00:08:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-23 00:08:57 +0000
commitc0be1fbed2b6723c63c27df2ef9c35a42aed2502 (patch)
tree7e969bb62b1eba2e73474808534be7476ed51e94 /html.c
parentb3eb7aa0ea2f065c5e7b4a9585bd716d2f27839d (diff)
downloadmandoc-c0be1fbed2b6723c63c27df2ef9c35a42aed2502.tar.gz
mandoc-c0be1fbed2b6723c63c27df2ef9c35a42aed2502.tar.zst
mandoc-c0be1fbed2b6723c63c27df2ef9c35a42aed2502.zip
Add support for `Sm' in -T[x]html -mdoc.
Diffstat (limited to 'html.c')
-rw-r--r--html.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/html.c b/html.c
index 070562fb..e90644a1 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.109 2010/07/23 00:08:57 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -417,6 +417,9 @@ print_otag(struct html *h, enum htmltag tag,
printf("&#160;");
}
+ 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