summaryrefslogtreecommitdiffstatshomepage
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
commitc719ec85550f1763968d4ff729b4269511f07ad6 (patch)
treed5340aa0040af63f9237b8971624cc5d73329def /macro.c
parentb772d067401e789feb01542db6d402e98c357b68 (diff)
downloadmandoc-c719ec85550f1763968d4ff729b4269511f07ad6.tar.gz
mandoc-c719ec85550f1763968d4ff729b4269511f07ad6.tar.zst
mandoc-c719ec85550f1763968d4ff729b4269511f07ad6.zip
*** empty log message ***
Diffstat (limited to 'macro.c')
-rw-r--r--macro.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/macro.c b/macro.c
index 56d8bc83..0ed6f173 100644
--- a/macro.c
+++ b/macro.c
@@ -1,4 +1,4 @@
-/* $Id: macro.c,v 1.32 2009/01/12 12:52:21 kristaps Exp $ */
+/* $Id: macro.c,v 1.33 2009/01/12 16:39:57 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);