aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-31 00:41:10 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-31 00:41:10 +0000
commit3042a5b54373deab8c467c7f8962ee168b12fee0 (patch)
treee404355452bf024edc614b820c12fe8bc2337c79 /read.c
parent0190b5d7285fc827bbcf891fc40e4debd1150213 (diff)
downloadmandoc-3042a5b54373deab8c467c7f8962ee168b12fee0.tar.gz
mandoc-3042a5b54373deab8c467c7f8962ee168b12fee0.tar.zst
mandoc-3042a5b54373deab8c467c7f8962ee168b12fee0.zip
In .Bl -column, if some of the column width declarations are given
right after the -column argument and some at the very end of the argument list, after some other arguments like -compact, concatenate the column lists. This gets rid of one of the last useless FATAL errors and actually shortens the code by a few lines. This fixes an issue introduced more than five years ago, at first causing an assert() since mdoc_action.c rev. 1.14 (June 17, 2009), then later a FATAL error since mdoc_validate rev. 1.130 (Nov. 30, 2010), and marked as "TODO" ever since.
Diffstat (limited to 'read.c')
-rw-r--r--read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/read.c b/read.c
index 201100cd..7a2f335b 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.74 2014/07/30 23:38:52 schwarze Exp $ */
+/* $Id: read.c,v 1.75 2014/07/31 00:41:10 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -205,7 +205,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"generic fatal error",
"input too large",
- "column syntax is inconsistent",
"NOT IMPLEMENTED: .Bd -file",
"NOT IMPLEMENTED: .so with absolute path or \"..\"",
".so request failed",