aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-09 19:22:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-09 19:22:56 +0000
commit1aea6f050761f70bdfd8647816b23774b971050c (patch)
tree19a97688898c1237faec76c3bb3fa8482be3a7a1 /libman.h
parentb4405b88c62581d578f4465b708c626057de8d4a (diff)
downloadmandoc-1aea6f050761f70bdfd8647816b23774b971050c.tar.gz
mandoc-1aea6f050761f70bdfd8647816b23774b971050c.tar.zst
mandoc-1aea6f050761f70bdfd8647816b23774b971050c.zip
Squash bug noted by Ulrich Spoerlein where "-" were being converted to
ASCII_HYPH, as per normal, but were screwing up mandoc_special(). Fixed by making mandoc_special() first check isspace() instead of ! isgraph(), then normalise its string as it passes out. This require de-constifying some validation routines not already de-constified (those in libman), but that's ok, because I'd like to be pushing actions into validation routines to save on space and redundant calculations.
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libman.h b/libman.h
index 62332750..ea9f3ffa 100644
--- a/libman.h
+++ b/libman.h
@@ -1,4 +1,4 @@
-/* $Id: libman.h,v 1.34 2010/05/17 22:11:42 kristaps Exp $ */
+/* $Id: libman.h,v 1.35 2010/06/09 19:22:56 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -79,7 +79,7 @@ int man_args(struct man *, int, int *, char *, char **);
int man_vmsg(struct man *, enum mandocerr,
int, int, const char *, ...);
int man_valid_post(struct man *);
-int man_valid_pre(struct man *, const struct man_node *);
+int man_valid_pre(struct man *, struct man_node *);
int man_action_post(struct man *);
int man_action_pre(struct man *, struct man_node *);
int man_unscope(struct man *,