summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-26 22:26:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-26 22:26:05 +0000
commit08aafd241c1ac542a9be86df47ea700e39152892 (patch)
treed0a0514c6695c5306fbd2e9b833a85fcb4c2d250
parent1fd005d98a28db7342389bec4f417e3fa20edd5d (diff)
downloadmandoc-08aafd241c1ac542a9be86df47ea700e39152892.tar.gz
Make `Sm' start no-spacing after the first output word. Fix in both
-T[x]html and -T{pdf,ps,ascii}. Reported by Jason McIntyre.
-rw-r--r--html.c2
-rw-r--r--term.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/html.c b/html.c
index 5a6002e9..8ec167e5 100644
--- a/html.c
+++ b/html.c
@@ -419,6 +419,8 @@ print_otag(struct html *h, enum htmltag tag,
if ( ! (h->flags & HTML_NONOSPACE))
h->flags &= ~HTML_NOSPACE;
+ else
+ h->flags |= HTML_NOSPACE;
/* Print out the tag name and attributes. */
diff --git a/term.c b/term.c
index 24fc0114..b1c373b1 100644
--- a/term.c
+++ b/term.c
@@ -502,6 +502,8 @@ term_word(struct termp *p, const char *word)
if ( ! (p->flags & TERMP_NONOSPACE))
p->flags &= ~TERMP_NOSPACE;
+ else
+ p->flags |= TERMP_NOSPACE;
p->flags &= ~TERMP_SENTENCE;