diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-09 19:22:56 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-06-09 19:22:56 +0000 |
commit | c92be367f7c707418fe2a4beb17688dffa614781 (patch) | |
tree | ad1bf921cea730c33b344ec8d7a420a9c758d32d /libman.h | |
parent | a560a18cf09008f29e00db4014ecd394727489c8 (diff) | |
download | mandoc-c92be367f7c707418fe2a4beb17688dffa614781.tar.gz |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 *, |