From: schwarze Date: Tue, 7 Sep 2021 10:58:44 +0000 (+0000) Subject: do not crash when a tbl(7) cell uses roman font X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f8e2f34e01f7b66d8d5eb1ff1bfaa26555f21e54;p=openbsd do not crash when a tbl(7) cell uses roman font --- diff --git a/usr.bin/mandoc/tree.c b/usr.bin/mandoc/tree.c index 8da9c7a38e8..be6dab878a6 100644 --- a/usr.bin/mandoc/tree.c +++ b/usr.bin/mandoc/tree.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tree.c,v 1.57 2021/08/10 12:36:42 schwarze Exp $ */ +/* $OpenBSD: tree.c,v 1.58 2021/09/07 10:58:44 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons * Copyright (c) 2013-2015, 2017-2021 Ingo Schwarze @@ -470,6 +470,8 @@ print_span(const struct tbl_span *sp, int indent) printf("%d", cp->col); print_cellt(dp->layout->pos); switch (cp->font) { + case ESCAPE_FONTROMAN: + break; case ESCAPE_FONTBOLD: putchar('b'); break;