diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-18 23:59:08 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-05-18 23:59:08 +0000 |
commit | e685d00aebe92d15022994ddc4ae0fc90fe64bee (patch) | |
tree | 34860742f1e364c03505ae25ebb3c64ba686bf19 /html.c | |
parent | 38cdc984f9af7ed09d36692dd15dbfa08eaff534 (diff) | |
download | mandoc-e685d00aebe92d15022994ddc4ae0fc90fe64bee.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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): |