=================================================================== RCS file: /cvs/mandoc/roff_term.c,v retrieving revision 1.13 retrieving revision 1.16 diff -u -p -r1.13 -r1.16 --- mandoc/roff_term.c 2017/06/14 22:51:25 1.13 +++ mandoc/roff_term.c 2018/12/14 01:18:26 1.16 @@ -1,6 +1,6 @@ -/* $Id: roff_term.c,v 1.13 2017/06/14 22:51:25 schwarze Exp $ */ +/* $Id: roff_term.c,v 1.16 2018/12/14 01:18:26 schwarze Exp $ */ /* - * Copyright (c) 2010, 2014, 2015, 2017 Ingo Schwarze + * Copyright (c) 2010,2014,2015,2017,2018 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -17,8 +17,9 @@ #include #include -#include +#include +#include "mandoc.h" #include "roff.h" #include "out.h" #include "term.h" @@ -110,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':