diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-03 00:29:21 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-03 00:29:21 +0000 |
commit | b9398370b0006ab2c539b0093cee758dfa1566fa (patch) | |
tree | 1f9c7923a17d47ba0250f5c8c6d001232185c9a1 /tbl_layout.c | |
parent | 2f337575f0b60b2f7fa3a87d67b27e01f8c40c0d (diff) | |
download | mandoc-b9398370b0006ab2c539b0093cee758dfa1566fa.tar.gz |
Fix handling of font modifiers in tables. Noted by Brad Smith.
Diffstat (limited to 'tbl_layout.c')
-rw-r--r-- | tbl_layout.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tbl_layout.c b/tbl_layout.c index b6f45f43..07837f9b 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -173,6 +173,8 @@ mod: goto mod; case ('f'): break; + case ('r'): + /* FALLTHROUGH */ case ('b'): /* FALLTHROUGH */ case ('i'): @@ -185,12 +187,20 @@ mod: } switch (tolower((unsigned char)p[(*pos)++])) { + case ('3'): + /* FALLTHROUGH */ case ('b'): cp->flags |= TBL_CELL_BOLD; goto mod; + case ('2'): + /* FALLTHROUGH */ case ('i'): cp->flags |= TBL_CELL_ITALIC; goto mod; + case ('1'): + /* FALLTHROUGH */ + case ('r'): + goto mod; default: break; } |