version 1.175, 2015/02/05 00:14:13 |
version 1.178, 2015/02/06 03:38:45 |
Line 772 in_line(MACRO_PROT_ARGS) |
|
Line 772 in_line(MACRO_PROT_ARGS) |
|
*/ |
*/ |
|
|
if (ac == ARGS_PUNCT) { |
if (ac == ARGS_PUNCT) { |
if (cnt == 0 && nc == 0) |
if (cnt == 0 && (nc == 0 || tok == MDOC_An)) |
mdoc->flags |= MDOC_NODELIMC; |
mdoc->flags |= MDOC_NODELIMC; |
break; |
break; |
} |
} |
Line 904 blk_full(MACRO_PROT_ARGS) |
|
Line 904 blk_full(MACRO_PROT_ARGS) |
|
|
|
nl = MDOC_NEWLINE & mdoc->flags; |
nl = MDOC_NEWLINE & mdoc->flags; |
|
|
|
if (buf[*pos] == '\0' && (tok == MDOC_Sh || tok == MDOC_Ss)) { |
|
mandoc_msg(MANDOCERR_MACRO_EMPTY, mdoc->parse, |
|
line, ppos, mdoc_macronames[tok]); |
|
return; |
|
} |
|
|
if ( ! (mdoc_macros[tok].flags & MDOC_EXPLICIT)) { |
if ( ! (mdoc_macros[tok].flags & MDOC_EXPLICIT)) { |
|
|
/* Here, tok is one of Sh Ss Nm Nd It. */ |
/* Here, tok is one of Sh Ss Nm Nd It. */ |
Line 1367 in_line_argn(MACRO_PROT_ARGS) |
|
Line 1373 in_line_argn(MACRO_PROT_ARGS) |
|
} |
} |
|
|
if (j == 0) { |
if (j == 0) { |
|
if (tok == MDOC_In || tok == MDOC_St || tok == MDOC_Xr) { |
|
mandoc_msg(MANDOCERR_MACRO_EMPTY, mdoc->parse, |
|
line, ppos, mdoc_macronames[tok]); |
|
return; |
|
} |
mdoc_elem_alloc(mdoc, line, ppos, tok, arg); |
mdoc_elem_alloc(mdoc, line, ppos, tok, arg); |
if (ac == ARGS_PUNCT && tok == MDOC_Pf) |
if (ac == ARGS_PUNCT && tok == MDOC_Pf) |
append_delims(mdoc, line, pos, buf); |
append_delims(mdoc, line, pos, buf); |
Line 1390 in_line_eoln(MACRO_PROT_ARGS) |
|
Line 1401 in_line_eoln(MACRO_PROT_ARGS) |
|
n = n->parent; |
n = n->parent; |
if (n->tok == MDOC_Nm) |
if (n->tok == MDOC_Nm) |
rew_last(mdoc, mdoc->last->parent); |
rew_last(mdoc, mdoc->last->parent); |
|
} |
|
|
|
if (buf[*pos] == '\0' && tok == MDOC_Fd) { |
|
mandoc_msg(MANDOCERR_MACRO_EMPTY, mdoc->parse, |
|
line, ppos, "Fd"); |
|
return; |
} |
} |
|
|
mdoc_argv(mdoc, line, tok, &arg, pos, buf); |
mdoc_argv(mdoc, line, tok, &arg, pos, buf); |