From 2309c9662ccbaa4ff76b6feb12b0c48de825418a Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 25 Oct 2018 01:21:31 +0000 Subject: Implement the \f(CW and \f(CR (constant width font) escape sequences for HTML output. Somewhat relevant because pod2man(1) relies on this. Missing feature reported by Pali dot Rohar at gmail dot com. Note that constant width font was already correctly selected before this when required by semantic markup. Only attempting physical markup with the low-level escape sequence was ineffective. --- usr.bin/mandoc/term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/mandoc/term.c') diff --git a/usr.bin/mandoc/term.c b/usr.bin/mandoc/term.c index 317302e6d73..e21c2622927 100644 --- a/usr.bin/mandoc/term.c +++ b/usr.bin/mandoc/term.c @@ -1,4 +1,4 @@ -/* $OpenBSD: term.c,v 1.135 2018/08/16 13:49:40 schwarze Exp $ */ +/* $OpenBSD: term.c,v 1.136 2018/10/25 01:21:30 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2018 Ingo Schwarze @@ -508,6 +508,7 @@ term_word(struct termp *p, const char *word) term_fontrepl(p, TERMFONT_BI); continue; case ESCAPE_FONT: + case ESCAPE_FONTCW: case ESCAPE_FONTROMAN: term_fontrepl(p, TERMFONT_NONE); continue; -- cgit v1.2.3