diff options
author | 2014-07-06 19:08:56 +0000 | |
---|---|---|
committer | 2014-07-06 19:08:56 +0000 | |
commit | dd5b31c33e6c0d8f8f0e508ab8d023e477e02e47 (patch) | |
tree | c9f90fb1633ad2036229f2fc8102749a035dbc7c /usr.bin/mandoc/mdoc_validate.c | |
parent | After skipping an escape sequence with incomplete arguments, (diff) | |
download | wireguard-openbsd-dd5b31c33e6c0d8f8f0e508ab8d023e477e02e47.tar.xz wireguard-openbsd-dd5b31c33e6c0d8f8f0e508ab8d023e477e02e47.zip |
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 'usr.bin/mandoc/mdoc_validate.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_validate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c index f2c98fb0187..afdc1638126 100644 --- a/usr.bin/mandoc/mdoc_validate.c +++ b/usr.bin/mandoc/mdoc_validate.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_validate.c,v 1.146 2014/07/05 12:33:54 schwarze Exp $ */ +/* $Id: mdoc_validate.c,v 1.147 2014/07/06 19:08:56 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -547,7 +547,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 |