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 | c97489f192655f4c659019bb01065f81365849a8 (patch) | |
tree | 92e8ddd081535061b5d3374eaac3057d8208a61f /roff_html.c | |
parent | dbfda8d8adf1a93a24085f7949afa4203b57ee2b (diff) | |
download | mandoc-c97489f192655f4c659019bb01065f81365849a8.tar.gz mandoc-c97489f192655f4c659019bb01065f81365849a8.tar.zst mandoc-c97489f192655f4c659019bb01065f81365849a8.zip |
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 'roff_html.c')
-rw-r--r-- | roff_html.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roff_html.c b/roff_html.c index 02b8beea..e525aa2e 100644 --- a/roff_html.c +++ b/roff_html.c @@ -1,4 +1,4 @@ -/* $Id: roff_html.c,v 1.19 2019/01/07 07:26:29 schwarze Exp $ */ +/* $Id: roff_html.c,v 1.20 2019/04/30 15:53:01 schwarze Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2017, 2018, 2019 Ingo Schwarze <schwarze@openbsd.org> @@ -94,7 +94,7 @@ roff_html_pre_ft(ROFF_HTML_ARGS) const char *cp; cp = n->child->string; - print_metaf(h, mandoc_font(cp, (int)strlen(cp))); + html_setfont(h, mandoc_font(cp, (int)strlen(cp))); } static void |