summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:38:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:38:17 +0000
commit2515c52e9db48734748471e72b6574b7253f9978 (patch)
tree098143e2fb21a53c2bbcd58cb0e4f7e217787515
parent544a766eb06bf03fc9ae275a02575c4dc54c8d32 (diff)
downloadmandoc-2515c52e9db48734748471e72b6574b7253f9978.tar.gz
Revert IGNPAR to a warning after clue-stick applied by schwarze@:
although technically-speaking a lost macro is an error (e.g., MANDOCERR_MACRO), casting out some extra whitespace (note, IGNPAR only happens in conditions where whitespace already exists!) is hardly an error matter.
-rw-r--r--main.c2
-rw-r--r--mandoc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index f6c625ec..c60984cd 100644
--- a/main.c
+++ b/main.c
@@ -145,6 +145,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
/* related to macros and nesting */
"skipping obsolete macro",
+ "skipping paragraph macro",
"blocks badly nested",
"child violates parent syntax",
"nested displays are not portable",
@@ -182,7 +183,6 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"skipping bad character",
"skipping text before the first section header",
"skipping unknown macro",
- "skipping paragraph macro",
"NOT IMPLEMENTED: skipping request",
"line scope broken",
"argument count wrong",
diff --git a/mandoc.h b/mandoc.h
index a7846d43..58c339fd 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -67,6 +67,7 @@ enum mandocerr {
/* related to macros and nesting */
MANDOCERR_MACROOBS, /* skipping obsolete macro */
+ MANDOCERR_IGNPAR, /* skipping paragraph macro */
MANDOCERR_SCOPENEST, /* blocks badly nested */
MANDOCERR_CHILD, /* child violates parent syntax */
MANDOCERR_NESTEDDISP, /* nested displays are not portable */
@@ -104,7 +105,6 @@ enum mandocerr {
MANDOCERR_BADCHAR, /* skipping bad character */
MANDOCERR_NOTEXT, /* skipping text before the first section header */
MANDOCERR_MACRO, /* skipping unknown macro */
- MANDOCERR_IGNPAR, /* skipping paragraph macro */
MANDOCERR_REQUEST, /* NOT IMPLEMENTED: skipping request */
MANDOCERR_LINESCOPE, /* line scope broken */
MANDOCERR_ARGCOUNT, /* argument count wrong */