summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-06-18 10:32:00 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-06-18 10:32:00 +0000
commitebc04fb0a062bcf881ac1fbe0706af873a8fcfc8 (patch)
tree4b2ea5a500c75fe94b0859570317fbfcaadb41d5 /main.c
parented2793f208e83ec93c078ea0592c4c8f1eff4649 (diff)
downloadmandoc-ebc04fb0a062bcf881ac1fbe0706af873a8fcfc8.tar.gz
Added -fno-ign-chars support to libman.
man_validate.c checks for non-tab/isprint words. libman hashtable fixed (was ignoring .br). Added ncount field to man_node, deprecating count() functions. Documented use of tabs in man.7.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index b76aa2ac..dd7df9fe 100644
--- a/main.c
+++ b/main.c
@@ -232,10 +232,12 @@ man_init(struct curparse *curp)
/* Defaults from mandoc.1. */
- pflags = MAN_IGN_MACRO;
+ pflags = MAN_IGN_MACRO | MAN_IGN_CHARS;
if (curp->fflags & NO_IGN_MACRO)
pflags &= ~MAN_IGN_MACRO;
+ if (curp->fflags & NO_IGN_CHARS)
+ pflags &= ~MAN_IGN_CHARS;
if (NULL == (man = man_alloc(curp, pflags, &mancb)))
warnx("memory exhausted");