summaryrefslogtreecommitdiffstatshomepage
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-12 02:57:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-12 02:57:35 +0000
commit79712733ab4bcabb671c2ec700a2dc90c6d460d4 (patch)
treee0926d01428c86acf7a6a3bc2e424599baffc0cf /argv.c
parent2c692ff2b11e4027db68943061063f808c438b20 (diff)
downloadmandoc-79712733ab4bcabb671c2ec700a2dc90c6d460d4.tar.gz
mandoc-79712733ab4bcabb671c2ec700a2dc90c6d460d4.tar.zst
mandoc-79712733ab4bcabb671c2ec700a2dc90c6d460d4.zip
Brq/Bro/Brc fixed up and pretty.
Cleaned up Aq/Sq use of escapes in term.c. Added initial -column support. Fixed argv returning ARGV_WORD and tokenising anyway.
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/argv.c b/argv.c
index e617e143..dcef1b26 100644
--- a/argv.c
+++ b/argv.c
@@ -1,4 +1,4 @@
-/* $Id: argv.c,v 1.48 2009/03/11 00:39:58 kristaps Exp $ */
+/* $Id: argv.c,v 1.49 2009/03/12 02:57:35 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -576,7 +576,7 @@ args(struct mdoc *mdoc, int line,
return(0);
if (p)
- return(ARGS_WORD);
+ return(ARGS_PHRASE);
/* Configure the eoln case, too. */
@@ -588,7 +588,7 @@ args(struct mdoc *mdoc, int line,
return(0);
*pos += (int)(p - *v);
- return(ARGS_WORD);
+ return(ARGS_PHRASE);
}
/* Do non-tabsep look-ahead here. */
@@ -688,6 +688,8 @@ argv_a2arg(int tok, const char *argv)
return(MDOC_File);
else if (xstrcmp(argv, "offset"))
return(MDOC_Offset);
+ else if (xstrcmp(argv, "compact"))
+ return(MDOC_Compact);
break;
case (MDOC_Bf):