summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc_markdown.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2018-10-25 01:21:31 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2018-10-25 01:21:31 +0000
commit2309c9662ccbaa4ff76b6feb12b0c48de825418a (patch)
tree3fc8070f02d4a92f1bd17b0c3c3fdc886553e7fa /usr.bin/mandoc/mdoc_markdown.c
parent24076ed67cfdc8085635b68311cecb70bad8e78d (diff)
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 'usr.bin/mandoc/mdoc_markdown.c')
-rw-r--r--usr.bin/mandoc/mdoc_markdown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mdoc_markdown.c b/usr.bin/mandoc/mdoc_markdown.c
index b647a98de33..f5150312d02 100644
--- a/usr.bin/mandoc/mdoc_markdown.c
+++ b/usr.bin/mandoc/mdoc_markdown.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_markdown.c,v 1.26 2018/08/17 20:31:52 schwarze Exp $ */
+/* $OpenBSD: mdoc_markdown.c,v 1.27 2018/10/25 01:21:30 schwarze Exp $ */
/*
* Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -600,6 +600,7 @@ md_word(const char *s)
nextfont = "***";
break;
case ESCAPE_FONT:
+ case ESCAPE_FONTCW:
case ESCAPE_FONTROMAN:
nextfont = "";
break;