diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-04-30 15:53:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-04-30 15:53:00 +0000 |
commit | ee0b68f80757c3f0a4e09e9fdbde02dcd76fa6e8 (patch) | |
tree | 53b86cbd806f99c0aaaaf8b1f6871705baedfb60 /man_html.c | |
parent | 43f9226f1dc68cb4e5298a723da0b838160b17ec (diff) | |
download | mandoc-ee0b68f80757c3f0a4e09e9fdbde02dcd76fa6e8.tar.gz |
In HTML output, allow switching the desired font for subsequent
text without printing an opening tag right away, and use that in
the .ft request handler. While here, garbage collect redundant
enum htmlfont and reduce code duplication in print_text().
Fixing an assertion failure reported by Michael <Stapelberg at Debian>
in pmRegisterDerived(3) from libpcp3-dev.
Diffstat (limited to 'man_html.c')
-rw-r--r-- | man_html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -203,9 +203,9 @@ print_man_node(MAN_ARGS) * Close out scope of font prior to opening a macro * scope. */ - if (HTMLFONT_NONE != h->metac) { + if (h->metac != ESCAPE_FONTROMAN) { h->metal = h->metac; - h->metac = HTMLFONT_NONE; + h->metac = ESCAPE_FONTROMAN; } /* |