summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 19:28:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-29 19:28:04 +0000
commitc3b989ab9fc89a8c8b709c612e5f9a40e523c983 (patch)
tree39688525345676226553f1fee8e89006e0ab1dea /mdoc_argv.c
parente34909a15faed90ad1d9efd5e6d44270ab386b5c (diff)
downloadmandoc-c3b989ab9fc89a8c8b709c612e5f9a40e523c983.tar.gz
Integrate Ingo Schwarze's patch for mdoc_iscdelim() (tri-state for opening and closing macro punctuation).
Modify blk_part_exp() to correctly handle leading punctuation before HEAD. Significantly clean up and document blk_part_exp(). Modify blk_part_imp() for to correctly handle leading punctuation before HEAD. Significantly clean up and document blk_part_imp(). Integrate Ingo Schwarze's patch for args() (using new mdoc_iscdelim() format). Documented bad `Ec' handling for later work in mdoc_term.c/mdoc_html.c.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index 4a96436c..9ad6a00a 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -401,9 +401,9 @@ args(struct mdoc *m, int line, int *pos,
* follows the pattern of [[::delim::][ ]+]+.
*/
- if ((fl & ARGS_DELIM) && mdoc_iscdelim(buf[*pos])) {
+ if ((fl & ARGS_DELIM) && mdoc_iscdelim(buf[*pos]) > 1) {
for (i = *pos; buf[i]; ) {
- if ( ! mdoc_iscdelim(buf[i]))
+ if ( mdoc_iscdelim(buf[i]) < 2)
break;
i++;
if (0 == buf[i] || ' ' != buf[i])