diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-26 17:51:55 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-26 17:51:55 +0000 |
commit | 0de54681d3f7151e2b9b98b64fe36571d47f3658 (patch) | |
tree | c78756114f47c95d43eb307b98202f6d2c984477 /tbl_opts.c | |
parent | 56b445d3928d35e9129387bfddeb64cd64cd421c (diff) | |
download | mandoc-0de54681d3f7151e2b9b98b64fe36571d47f3658.tar.gz |
Allow comma-separated options in tbl(7) tables.
Provides better groff compatibility.
From bentley@.
Diffstat (limited to 'tbl_opts.c')
-rw-r--r-- | tbl_opts.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -182,7 +182,7 @@ again: /* * * options ::= option_list [:space:]* [;][\n] * option_list ::= option option_tail - * option_tail ::= [:space:]+ option_list | + * option_tail ::= [,:space:]+ option_list | * ::= epsilon * option ::= [:alpha:]+ args * args ::= [:space:]* [(] [:alpha:]+ [)] @@ -213,7 +213,7 @@ again: /* buf[i] = '\0'; - while (isspace((unsigned char)p[*pos])) + while (isspace((unsigned char)p[*pos]) || p[*pos] == ',') (*pos)++; /* |