summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/roff_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-12-31 07:07:43 +0000
committerschwarze <schwarze@openbsd.org>2018-12-31 07:07:43 +0000
commit0438bfdfcae122aef2b2c9bf277771593bd904fc (patch)
treebf15bb27e16b8fe367af135c222fca3cd80d7a1f /usr.bin/mandoc/roff_html.c
parentCleanup, minus 15 LOC, no functional change: (diff)
downloadwireguard-openbsd-0438bfdfcae122aef2b2c9bf277771593bd904fc.tar.xz
wireguard-openbsd-0438bfdfcae122aef2b2c9bf277771593bd904fc.zip
Move parsing of the .nf and .fi (fill mode) requests from the man(7)
parser to the roff(7) parser. As a side effect, .nf and .fi are now also parsed in mdoc(7) input, though the mdoc(7) formatters still ignore most of their effect.
Diffstat (limited to 'usr.bin/mandoc/roff_html.c')
-rw-r--r--usr.bin/mandoc/roff_html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/roff_html.c b/usr.bin/mandoc/roff_html.c
index 9cf1c3b1b71..d8905821a45 100644
--- a/usr.bin/mandoc/roff_html.c
+++ b/usr.bin/mandoc/roff_html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: roff_html.c,v 1.15 2018/12/15 23:33:20 schwarze Exp $ */
+/* $OpenBSD: roff_html.c,v 1.16 2018/12/31 07:07:43 schwarze Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -38,9 +38,11 @@ static void roff_html_pre_sp(ROFF_HTML_ARGS);
static const roff_html_pre_fp roff_html_pre_acts[ROFF_MAX] = {
roff_html_pre_br, /* br */
roff_html_pre_ce, /* ce */
+ roff_html_pre_br, /* fi */
roff_html_pre_ft, /* ft */
NULL, /* ll */
NULL, /* mc */
+ roff_html_pre_br, /* nf */
NULL, /* po */
roff_html_pre_ce, /* rj */
roff_html_pre_sp, /* sp */