summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-10-19 09:40:23 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-10-19 09:40:23 +0000
commite9b4a2a77a14b1e378aec8c2faa388c8f22d89fa (patch)
tree1f5fd444f471f2031d3d499a20684d92bced2edb
parentd1766a73cce0b73887553dac6e44cdfd9eadd991 (diff)
downloadmandoc-e9b4a2a77a14b1e378aec8c2faa388c8f22d89fa.tar.gz
Fixed `-file' argument to `Bd', which is NOT a type, but instead just an argument.
-rw-r--r--mdoc_argv.c2
-rw-r--r--mdoc_validate.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index 8f70fe23..47b80ab6 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -59,7 +59,7 @@ static int mdoc_argvflags[MDOC_ARG_MAX] = {
ARGV_NONE, /* MDOC_Ragged */
ARGV_NONE, /* MDOC_Unfilled */
ARGV_NONE, /* MDOC_Literal */
- ARGV_NONE, /* MDOC_File */
+ ARGV_SINGLE, /* MDOC_File */
ARGV_OPT_SINGLE, /* MDOC_Offset */
ARGV_NONE, /* MDOC_Bullet */
ARGV_NONE, /* MDOC_Dash */
diff --git a/mdoc_validate.c b/mdoc_validate.c
index f3c00173..7acfc33a 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -703,8 +703,6 @@ pre_bd(PRE_ARGS)
case (MDOC_Filled):
/* FALLTHROUGH */
case (MDOC_Literal):
- /* FALLTHROUGH */
- case (MDOC_File):
if (0 == type++)
break;
return(mdoc_nerr(mdoc, n, EMULTIDISP));