aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-10-25 01:32:40 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-10-25 01:32:40 +0000
commit6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5 (patch)
treeb0f9734269df7b90bac3701dd8a4ac62cc8550f0 /term.c
parenta93cab0159f106fce2adae204f5e9a1011800296 (diff)
downloadmandoc-6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5.tar.gz
mandoc-6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5.tar.zst
mandoc-6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5.zip
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.
Diffstat (limited to 'term.c')
-rw-r--r--term.c3
1 files changed, 2 insertions, 1 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2010-2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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;