summaryrefslogtreecommitdiffstatshomepage
path: root/ascii.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-04-12 19:19:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-04-12 19:19:57 +0000
commit64f804892d86409e054d72a0a2fae9733b46ce16 (patch)
treefdc9f4ad378eaecaa1685480daa123838fff3d15 /ascii.c
parent60b9600bd2c7ac00417ebb42873ffe00a80a205f (diff)
downloadmandoc-64f804892d86409e054d72a0a2fae9733b46ce16.tar.gz
mandoc-64f804892d86409e054d72a0a2fae9733b46ce16.tar.zst
mandoc-64f804892d86409e054d72a0a2fae9733b46ce16.zip
Manual .Dt fields CAPITALISED.
Indent set to 5 chars (nroff compat). Half-indent set to 3 chars (nroff compat). Default behaviour is loose-y (ignore macro/char/escape). Added -fstrict. Added unknown-character ignoring.
Diffstat (limited to 'ascii.c')
-rw-r--r--ascii.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ascii.c b/ascii.c
index b57bc2aa..5812dd17 100644
--- a/ascii.c
+++ b/ascii.c
@@ -1,4 +1,4 @@
-/* $Id: ascii.c,v 1.5 2009/04/05 16:34:22 kristaps Exp $ */
+/* $Id: ascii.c,v 1.6 2009/04/12 19:19:57 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -137,7 +137,10 @@ term_a2ascii(void *arg, const char *p, size_t sz, size_t *rsz)
assert(p);
assert(sz > 0);
- assert(p[0] >= ASCII_PRINT_LO && p[0] <= ASCII_PRINT_HI);
+
+ if (p[0] < ASCII_PRINT_LO || p[0] > ASCII_PRINT_HI)
+ return(NULL);
+
/*
* Lookup the symbol in the symbol hash. See ascii2htab for the