aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit23063cd88255c9044bad80050587c13d666bb8b2 (patch)
treee024d5a9ec17d42306edc673bad16a0e2d33cbf9
parent5e8dea30d01017a3651dedc1f6eda3d2b1e6f8d1 (diff)
downloadmandoc-23063cd88255c9044bad80050587c13d666bb8b2.tar.gz
mandoc-23063cd88255c9044bad80050587c13d666bb8b2.tar.zst
mandoc-23063cd88255c9044bad80050587c13d666bb8b2.zip
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.c4
-rw-r--r--mandoc.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 59f8fc69..131068ff 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.124 2010/12/21 01:22:03 schwarze Exp $ */
+/* $Id: main.c,v 1.125 2010/12/22 11:38:17 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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 51239794..9b4eb759 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.34 2010/12/15 23:39:40 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.35 2010/12/22 11:38:17 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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 */