aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-18 23:59:08 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-18 23:59:08 +0000
commitdd0cac76b8c2d4067ba6cb936ca1f43f6bebeadb (patch)
tree5351c3ad6c99e747a976b1949720c4f9fd71a565 /html.c
parent3037835dd1f5601b421e54ea434b1d87e9f5a26f (diff)
downloadmandoc-dd0cac76b8c2d4067ba6cb936ca1f43f6bebeadb.tar.gz
mandoc-dd0cac76b8c2d4067ba6cb936ca1f43f6bebeadb.tar.zst
mandoc-dd0cac76b8c2d4067ba6cb936ca1f43f6bebeadb.zip
Make any un-recognised font be considered a call for the Roman font.
This makes sequences of \f[unknown] \fP not completely puke. From a TODO by schwarze@.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/html.c b/html.c
index fd696284..08e2086c 100644
--- a/html.c
+++ b/html.c
@@ -1,4 +1,4 @@
-/* $Id: html.c,v 1.144 2011/05/17 11:50:20 kristaps Exp $ */
+/* $Id: html.c,v 1.145 2011/05/18 23:59:08 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -272,6 +272,8 @@ print_metaf(struct html *h, enum mandoc_esc deco)
case (ESCAPE_FONTBOLD):
font = HTMLFONT_BOLD;
break;
+ case (ESCAPE_FONT):
+ /* FALLTHROUGH */
case (ESCAPE_FONTROMAN):
font = HTMLFONT_NONE;
break;
@@ -392,6 +394,8 @@ print_encode(struct html *h, const char *p, int norecurse)
case (ESCAPE_SPECIAL):
print_spec(h, seq, len);
break;
+ case (ESCAPE_FONT):
+ /* FALLTHROUGH */
case (ESCAPE_FONTPREV):
/* FALLTHROUGH */
case (ESCAPE_FONTBOLD):