From e3df96e26436bd256a2aa5a33e49f9166ff6d4b6 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 17 Mar 2011 09:16:38 +0000 Subject: Move mdoc_isdelim() into mandoc.h as mandoc_isdelim(). This allows the removal of manual delimiter checks in html.c and term.c. Finally, add the escaped period as a closing delimiter, removing a TODO to this effect. --- mdoc_argv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mdoc_argv.c') diff --git a/mdoc_argv.c b/mdoc_argv.c index 12c15966..89f30fd7 100644 --- a/mdoc_argv.c +++ b/mdoc_argv.c @@ -587,7 +587,7 @@ args_checkpunct(const char *p) return(0); buf[j] = '\0'; - if (DELIM_CLOSE != mdoc_isdelim(buf)) + if (DELIM_CLOSE != mandoc_isdelim(buf)) return(0); while (' ' == p[i]) @@ -604,7 +604,7 @@ args_checkpunct(const char *p) return(0); buf[j] = '\0'; - d = mdoc_isdelim(buf); + d = mandoc_isdelim(buf); if (DELIM_NONE == d || DELIM_OPEN == d) return(0); -- cgit