From bd11218f6075c362abe3732f284b777ea01c973e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 26 Nov 2014 17:51:55 +0000 Subject: Allow comma-separated options in tbl(7) tables. Provides better groff compatibility. From bentley@. --- tbl_opts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tbl_opts.c') diff --git a/tbl_opts.c b/tbl_opts.c index 10f33d41..d5ad42f7 100644 --- a/tbl_opts.c +++ b/tbl_opts.c @@ -1,4 +1,4 @@ -/* $Id: tbl_opts.c,v 1.14 2014/08/10 23:54:41 schwarze Exp $ */ +/* $Id: tbl_opts.c,v 1.15 2014/11/26 17:51:55 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * @@ -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)++; /* -- cgit v1.2.3-56-ge451