summaryrefslogtreecommitdiffstats
path: root/macro.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 16:39:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 16:39:57 +0000
commit1ffa508fd07870fb2094e48de2c5207abd02fc6c (patch)
tree5386c805f76801425f3e589242f263837395f6c2 /macro.c
parentf41349a945984d15e04b7576ea08bc651631d093 (diff)
downloadmandoc-1ffa508fd07870fb2094e48de2c5207abd02fc6c.tar.gz
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/macro.c b/macro.c
index e319cafc..37769a85 100644
--- a/macro.c
+++ b/macro.c
@@ -479,7 +479,7 @@ macro_text(MACRO_PROT_ARGS)
int
macro_scoped(MACRO_PROT_ARGS)
{
- int c, lastarg, argc, j;
+ int c, lastarg, argc, j, fl;
struct mdoc_arg argv[MDOC_LINEARG_MAX];
char *p;
@@ -529,9 +529,13 @@ macro_scoped(MACRO_PROT_ARGS)
return(0);
mdoc->next = MDOC_NEXT_CHILD;
+ fl = ARGS_DELIM;
+ if (MDOC_TABSEP & mdoc_macros[tok].flags)
+ fl |= ARGS_TABSEP;
+
for (j = 0; j < MDOC_LINEARG_MAX; j++) {
lastarg = *pos;
- c = mdoc_args(mdoc, line, pos, buf, ARGS_DELIM, &p);
+ c = mdoc_args(mdoc, line, pos, buf, fl, &p);
if (ARGS_ERROR == c)
return(0);