aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-20 14:56:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-20 14:56:42 +0000
commit28f89d13b7d6b04d99517c6e31655ddfbd3ea541 (patch)
treeeddf064f205df6769af821586c16ae6b774b25fc /mandoc.h
parentf62e3bc028493beff5eb1eab67d8f60670958e0b (diff)
downloadmandoc-28f89d13b7d6b04d99517c6e31655ddfbd3ea541.tar.gz
mandoc-28f89d13b7d6b04d99517c6e31655ddfbd3ea541.tar.zst
mandoc-28f89d13b7d6b04d99517c6e31655ddfbd3ea541.zip
Strip non-graphable input characters from input. The manuals
specifically say that this is not allowed, and were it allowed, output would be inconsistent across output media (-Tps will puke, non-your-charset terminals will puke, etc.). With this done, simplify check_text() to only check escapes and for tabs. Add in a new tab warning, too.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index 10c60a96..2fbc0d5b 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.16 2010/07/05 20:10:22 kristaps Exp $ */
+/* $Id: mandoc.h,v 1.17 2010/07/20 14:56:42 kristaps Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -39,6 +39,7 @@ enum mandocerr {
MANDOCERR_LISTFIRST, /* list type must come first */
MANDOCERR_BADSTANDARD, /* bad standard */
MANDOCERR_BADLIB, /* bad library */
+ MANDOCERR_BADTAB, /* tab in non-literal context */
MANDOCERR_BADESCAPE, /* bad escape sequence */
MANDOCERR_BADQUOTE, /* unterminated quoted string */
MANDOCERR_NOWIDTHARG, /* argument requires the width argument */