From 28f89d13b7d6b04d99517c6e31655ddfbd3ea541 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 20 Jul 2010 14:56:42 +0000 Subject: 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. --- mandoc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mandoc.h') 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 * @@ -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 */ -- cgit v1.2.3