diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-10 20:40:45 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-10 20:40:45 +0000 |
commit | bbc9692176a7890be65fe472b75bbb307fcf0b62 (patch) | |
tree | 4f9be2c872764d4350a61c83c0441ffa2d9c949a /roff_term.c | |
parent | fbc87aa03d8f797ab884fc9f06443bd748a82ca1 (diff) | |
download | mandoc-bbc9692176a7890be65fe472b75bbb307fcf0b62.tar.gz mandoc-bbc9692176a7890be65fe472b75bbb307fcf0b62.tar.zst mandoc-bbc9692176a7890be65fe472b75bbb307fcf0b62.zip |
The groff man-ext macros define fonts CB, CI, and CR,
and some groff manual pages actually use them in .ft requests.
It's easy enough to handle these .ft requests in mandoc, too.
Diffstat (limited to 'roff_term.c')
-rw-r--r-- | roff_term.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/roff_term.c b/roff_term.c index b5ec7649..ba673307 100644 --- a/roff_term.c +++ b/roff_term.c @@ -1,6 +1,6 @@ -/* $Id: roff_term.c,v 1.14 2017/06/24 14:38:33 schwarze Exp $ */ +/* $Id: roff_term.c,v 1.15 2018/08/10 20:40:45 schwarze Exp $ */ /* - * Copyright (c) 2010, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010,2014,2015,2017,2018 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -111,7 +111,12 @@ roff_term_pre_ce(ROFF_TERM_ARGS) static void roff_term_pre_ft(ROFF_TERM_ARGS) { - switch (*n->child->string) { + const char *cp; + + if (*(cp = n->child->string) == 'C') + cp++; + + switch (*cp) { case '4': case '3': case 'B': |