summaryrefslogtreecommitdiffstats
path: root/man_term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-06 22:06:23 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-06 22:06:23 +0000
commit783bc3a527ff5c2b0e27b9da575cdf4d3cfc63f3 (patch)
tree3b9f6342694760a38e670aafe2b8cf24b1b2005b /man_term.c
parent3659cf8ba988c65563a22589e56fcd2c7ca01330 (diff)
downloadmandoc-783bc3a527ff5c2b0e27b9da575cdf4d3cfc63f3.tar.gz
Do not mistreat empty arguments to font alternating macros
as vertical spacing requests. Bug found with xmahjongg(6).
Diffstat (limited to 'man_term.c')
-rw-r--r--man_term.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/man_term.c b/man_term.c
index aac54eef..98be2c97 100644
--- a/man_term.c
+++ b/man_term.c
@@ -321,7 +321,10 @@ pre_alternate(DECL_ARGS)
term_fontrepl(p, font[i]);
if (savelit && NULL == nn->next)
mt->fl |= MANT_LITERAL;
- print_man_node(p, mt, nn, meta);
+ assert(nn->type == ROFFT_TEXT);
+ term_word(p, nn->string);
+ if (nn->flags & MAN_EOS)
+ p->flags |= TERMP_SENTENCE;
if (nn->next)
p->flags |= TERMP_NOSPACE;
}