From 6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 25 Oct 2018 01:32:40 +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. --- term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term.c') diff --git a/term.c b/term.c index 0b722289..264d0896 100644 --- a/term.c +++ b/term.c @@ -1,4 +1,4 @@ -/* $Id: term.c,v 1.275 2018/08/16 13:54:06 schwarze Exp $ */ +/* $Id: term.c,v 1.276 2018/10/25 01:32:41 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2018 Ingo Schwarze @@ -510,6 +510,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-56-ge451