summaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 22:27:08 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 22:27:08 +0000
commit50d29bf6574505b50aa9e8520471ac37a8de0bad (patch)
treec9ce4086e578d25027f8722c883949a2c0319868 /main.c
parent1e982599c7f339de5711a30d937e9f4ab18a529f (diff)
downloadmandoc-50d29bf6574505b50aa9e8520471ac37a8de0bad.tar.gz
mandoc-50d29bf6574505b50aa9e8520471ac37a8de0bad.tar.zst
mandoc-50d29bf6574505b50aa9e8520471ac37a8de0bad.zip
Add a warning if a data cell has no layout. Also make -Ttree show this
with a little star next to the entry (yeah, this is mostly for testing).
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.c b/main.c
index d028a810..5b9fe27f 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.130 2011/01/01 16:18:39 kristaps Exp $ */
+/* $Id: main.c,v 1.131 2011/01/01 22:27:08 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -176,9 +176,13 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"bad comment style",
"unknown escape sequence",
"unterminated quoted string",
+
+ /* related to tables */
+ "extra data cells",
"generic error",
+ /* related to tables */
"bad table syntax",
"bad table option",
"bad table layout",