diff options
Diffstat (limited to 'tbl_layout.c')
-rw-r--r-- | tbl_layout.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tbl_layout.c b/tbl_layout.c index 20c774bc..50e9728d 100644 --- a/tbl_layout.c +++ b/tbl_layout.c @@ -90,6 +90,20 @@ mod: break; } + /* Throw away parenthesised expression. */ + + if ('(' == p[*pos]) { + (*pos)++; + while (p[*pos] && ')' != p[*pos]) + (*pos)++; + if (')' == p[*pos]) { + (*pos)++; + goto mod; + } + TBL_MSG(tbl, MANDOCERR_TBLLAYOUT, ln, *pos); + return(0); + } + /* Parse numerical spacing from modifier string. */ if (isdigit((unsigned char)p[*pos])) { |