summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-07-04 14:40:38 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-07-04 14:40:38 +0000
commit75fcdc8f6e5fb48e822f9835879d7bfbfcddab03 (patch)
tree14ab0ef814c95d15c83f14a9061eaf24cc80336f
parent1de71bb307bce265869b412452d0d403674e5eda (diff)
downloadmandoc-75fcdc8f6e5fb48e822f9835879d7bfbfcddab03.tar.gz
Printing "BASE:" in messages about violations of base system conventions
is confusing, simply print "STYLE:", which is intuitive and does not sound excessively alarming; suggested by jmc@, OK tedu@ jmc@.
-rw-r--r--main.c3
-rw-r--r--mandoc.16
-rw-r--r--read.c2
3 files changed, 8 insertions, 3 deletions
diff --git a/main.c b/main.c
index 9d6db883..7e5d32fd 100644
--- a/main.c
+++ b/main.c
@@ -1089,8 +1089,7 @@ mmsg(enum mandocerr t, enum mandoclevel lvl,
if (line)
fprintf(stderr, "%d:%d:", line, col + 1);
- fprintf(stderr, " %s",
- t < MANDOCERR_STYLE ? "BASE" : mparse_strlevel(lvl));
+ fprintf(stderr, " %s", mparse_strlevel(lvl));
if ((mparse_msg = mparse_strerror(t)) != NULL)
fprintf(stderr, ": %s", mparse_msg);
diff --git a/mandoc.1 b/mandoc.1
index 436b06f7..5d36a93f 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -762,6 +762,12 @@ A convertion used in the base system of a specific operating system
is not adhered to.
These are not markup mistakes, and neither the quality of formatting
nor portability are in danger.
+Messages of the
+.Cm base
+level are printed with the more intuitive
+.Cm style
+.Ar level
+tag.
.El
.Pp
Messages of the
diff --git a/read.c b/read.c
index 4ba4abbe..2c23d411 100644
--- a/read.c
+++ b/read.c
@@ -75,7 +75,7 @@ static void mparse_parse_buffer(struct mparse *, struct buf,
static const enum mandocerr mandoclimits[MANDOCLEVEL_MAX] = {
MANDOCERR_OK,
- MANDOCERR_STYLE,
+ MANDOCERR_OK,
MANDOCERR_WARNING,
MANDOCERR_ERROR,
MANDOCERR_UNSUPP,