diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2021-09-07 10:59:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2021-09-07 10:59:18 +0000 |
commit | fede310309f8eed47e4507d3b6709aeeacf8f438 (patch) | |
tree | 34102546af95b1d3f6d135a5e1bdeb6aec833591 | |
parent | b52d1b074ccd1aae409205ca0eb819fafa56ba7e (diff) | |
download | mandoc-fede310309f8eed47e4507d3b6709aeeacf8f438.tar.gz mandoc-fede310309f8eed47e4507d3b6709aeeacf8f438.tar.zst mandoc-fede310309f8eed47e4507d3b6709aeeacf8f438.zip |
do not crash when a tbl(7) cell uses roman font
-rw-r--r-- | tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: tree.c,v 1.90 2021/08/10 12:55:04 schwarze Exp $ */ +/* $Id: tree.c,v 1.91 2021/09/07 10:59:18 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013-2015, 2017-2021 Ingo Schwarze <schwarze@openbsd.org> @@ -472,6 +472,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; |