From 5f98b3a090ad54344bd34505b7c8f31169fdfa41 Mon Sep 17 00:00:00 2001 From: schwarze Date: Sat, 18 Aug 2018 14:25:55 +0000 Subject: [PATCH] The .nf/.fi (fill mode) requests never have text children and in particular do not reset font mode. --- usr.bin/mandoc/man_term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index b7b806e393a..f48c09ceabc 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_term.c,v 1.170 2018/08/18 14:02:52 schwarze Exp $ */ +/* $OpenBSD: man_term.c,v 1.171 2018/08/18 14:25:55 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons * Copyright (c) 2010-2015, 2017, 2018 Ingo Schwarze @@ -115,8 +115,8 @@ static const struct man_term_act man_term_acts[MAN_MAX - MAN_TH] = { { pre_I, NULL, 0 }, /* I */ { pre_alternate, NULL, 0 }, /* IR */ { pre_alternate, NULL, 0 }, /* RI */ - { pre_literal, NULL, 0 }, /* nf */ - { pre_literal, NULL, 0 }, /* fi */ + { pre_literal, NULL, MAN_NOTEXT }, /* nf */ + { pre_literal, NULL, MAN_NOTEXT }, /* fi */ { NULL, NULL, 0 }, /* RE */ { pre_RS, post_RS, 0 }, /* RS */ { pre_DT, NULL, 0 }, /* DT */ -- 2.20.1