From f8e2f34e01f7b66d8d5eb1ff1bfaa26555f21e54 Mon Sep 17 00:00:00 2001 From: schwarze Date: Tue, 7 Sep 2021 10:58:44 +0000 Subject: [PATCH] do not crash when a tbl(7) cell uses roman font --- usr.bin/mandoc/tree.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1