summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-04-30 15:53:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-04-30 15:53:00 +0000
commitee0b68f80757c3f0a4e09e9fdbde02dcd76fa6e8 (patch)
tree53b86cbd806f99c0aaaaf8b1f6871705baedfb60 /man_html.c
parent43f9226f1dc68cb4e5298a723da0b838160b17ec (diff)
downloadmandoc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index 6c5ffba0..a6ad3b43 100644
--- a/man_html.c
+++ b/man_html.c
@@ -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;
}
/*