From 1481c0648531c03ad8b53843797e3c269032f43c Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 5 May 2017 02:06:19 +0000 Subject: Move handling of the roff(7) .ft request from the man(7) modules to the new roff(7) modules. As a side effect, mdoc(7) now handles .ft, too. Of course, do not use that. --- roff_html.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'roff_html.c') diff --git a/roff_html.c b/roff_html.c index 533fb9b7..3e30aa14 100644 --- a/roff_html.c +++ b/roff_html.c @@ -17,6 +17,7 @@ #include #include +#include #include "roff.h" #include "out.h" @@ -30,6 +31,7 @@ static void roff_html_pre_br(ROFF_HTML_ARGS); static const roff_html_pre_fp roff_html_pre_acts[ROFF_MAX] = { roff_html_pre_br, /* br */ + NULL, /* ft */ }; @@ -37,7 +39,8 @@ void roff_html_pre(struct html *h, const struct roff_node *n) { assert(n->tok < ROFF_MAX); - (*roff_html_pre_acts[n->tok])(h, n); + if (roff_html_pre_acts[n->tok] != NULL) + (*roff_html_pre_acts[n->tok])(h, n); } static void -- cgit v1.2.3