diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-04 14:40:38 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-07-04 14:40:38 +0000 |
commit | 75fcdc8f6e5fb48e822f9835879d7bfbfcddab03 (patch) | |
tree | 14ab0ef814c95d15c83f14a9061eaf24cc80336f | |
parent | 1de71bb307bce265869b412452d0d403674e5eda (diff) | |
download | mandoc-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.c | 3 | ||||
-rw-r--r-- | mandoc.1 | 6 | ||||
-rw-r--r-- | read.c | 2 |
3 files changed, 8 insertions, 3 deletions
@@ -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); @@ -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 @@ -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, |