diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-06 22:06:23 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-04-06 22:06:23 +0000 |
commit | 42daeb33f995857a79a8630b58e3c8444aa9f9b9 (patch) | |
tree | 5b2da1f9af931c37896a5f83124bba1aac009045 /man_term.c | |
parent | 9572664060cc4b498a5ac667a2e93e8b2df803d9 (diff) | |
download | mandoc-42daeb33f995857a79a8630b58e3c8444aa9f9b9.tar.gz mandoc-42daeb33f995857a79a8630b58e3c8444aa9f9b9.tar.zst mandoc-42daeb33f995857a79a8630b58e3c8444aa9f9b9.zip |
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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.178 2015/04/06 14:59:21 schwarze Exp $ */ +/* $Id: man_term.c,v 1.179 2015/04/06 22:06:23 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2015 Ingo Schwarze <schwarze@openbsd.org> @@ -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; } |