summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-06 19:09:00 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-06 19:09:00 +0000
commitf8af9067d4fce04d00f200ac8a73574b0e306f9d (patch)
tree1a3fc7d34cbd677e9114ee5ce220f5ae3afb1b28 /mdoc_validate.c
parentfeee5d1a235960cd9737d8171d429d9e4acd27cb (diff)
downloadmandoc-f8af9067d4fce04d00f200ac8a73574b0e306f9d.tar.gz
Clean up messages related to plain text and to escape sequences.
* Mention invalid escape sequences and string names, and fallbacks. * Hierarchical naming.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index fb927fd2..48bb9c2c 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -551,7 +551,8 @@ check_text(struct mdoc *mdoc, int ln, int pos, char *p)
return;
for (cp = p; NULL != (p = strchr(p, '\t')); p++)
- mdoc_pmsg(mdoc, ln, pos + (int)(p - cp), MANDOCERR_BADTAB);
+ mandoc_msg(MANDOCERR_FI_TAB, mdoc->parse,
+ ln, pos + (int)(p - cp), NULL);
}
static int