From bbc9692176a7890be65fe472b75bbb307fcf0b62 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 10 Aug 2018 20:40:45 +0000 Subject: 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. --- roff_term.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'roff_term.c') 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 + * 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 @@ -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': -- cgit v1.2.3