diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-07 14:07:03 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-07 14:07:03 +0000 |
commit | 847e143953798733354192e2afa9dc903f328ac3 (patch) | |
tree | 6737f495f456422d5fb30708addf6c21616a15fa /tbl_layout.c | |
parent | b6cc40bb851bdf52d1814a047df43e7f59c6d91b (diff) | |
download | mandoc-847e143953798733354192e2afa9dc903f328ac3.tar.gz |
If a tbl(7) layout contains unknown font modifiers, fall back to the
default font rather than failing the whole table.
Needed by some pages in books/man-pages-posix.
Written on the plane back from EuroBSDCon in Sofia.
Diffstat (limited to 'tbl_layout.c')
-rw-r--r-- | tbl_layout.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tbl_layout.c b/tbl_layout.c index b0e0ae98..b78e8881 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -201,6 +201,11 @@ mod: default: break; } + if (isalnum((unsigned char)p[*pos - 1])) { + mandoc_vmsg(MANDOCERR_FT_BAD, tbl->parse, + ln, *pos - 1, "TS f%c", p[*pos - 1]); + goto mod; + } mandoc_msg(MANDOCERR_TBLLAYOUT, tbl->parse, ln, *pos - 1, NULL); |