version 1.174, 2011/08/16 12:23:51 |
version 1.179, 2011/11/19 13:29:47 |
Line 545 check_text(struct mdoc *m, int ln, int pos, char *p) |
|
Line 545 check_text(struct mdoc *m, int ln, int pos, char *p) |
|
{ |
{ |
char *cp; |
char *cp; |
|
|
cp = p; |
if (MDOC_LITERAL & m->flags) |
for (cp = p; NULL != (p = strchr(p, '\t')); p++) { |
return; |
if (MDOC_LITERAL & m->flags) |
|
continue; |
for (cp = p; NULL != (p = strchr(p, '\t')); p++) |
mdoc_pmsg(m, ln, (int)(p - cp), MANDOCERR_BADTAB); |
mdoc_pmsg(m, ln, pos + (int)(p - cp), MANDOCERR_BADTAB); |
} |
|
} |
} |
|
|
static int |
static int |
Line 703 pre_bl(PRE_ARGS) |
|
Line 702 pre_bl(PRE_ARGS) |
|
if (LIST_column == lt) { |
if (LIST_column == lt) { |
n->norm->Bl.ncols = |
n->norm->Bl.ncols = |
n->args->argv[i].sz; |
n->args->argv[i].sz; |
n->norm->Bl.cols = (const char **) |
n->norm->Bl.cols = (void *) |
n->args->argv[i].value; |
n->args->argv[i].value; |
} |
} |
} |
} |
Line 1521 post_bl_head(POST_ARGS) |
|
Line 1520 post_bl_head(POST_ARGS) |
|
((size_t)mdoc->last->nchild * sizeof(char *)); |
((size_t)mdoc->last->nchild * sizeof(char *)); |
|
|
mdoc->last->norm->Bl.ncols = np->args->argv[j].sz; |
mdoc->last->norm->Bl.ncols = np->args->argv[j].sz; |
mdoc->last->norm->Bl.cols = (const char **)np->args->argv[j].value; |
mdoc->last->norm->Bl.cols = (void *)np->args->argv[j].value; |
|
|
for (i = 0, nn = mdoc->last->child; nn; i++) { |
for (i = 0, nn = mdoc->last->child; nn; i++) { |
np->args->argv[j].value[i] = nn->string; |
np->args->argv[j].value[i] = nn->string; |
Line 1693 post_rs(POST_ARGS) |
|
Line 1692 post_rs(POST_ARGS) |
|
mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD); |
mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD); |
mdoc_node_delete(mdoc, nn); |
mdoc_node_delete(mdoc, nn); |
} |
} |
|
|
|
/* |
|
* Nothing to sort if only invalid nodes were found |
|
* inside the `Rs' body. |
|
*/ |
|
|
|
if (NULL == mdoc->last->child) |
|
return(1); |
|
|
/* |
/* |
* The full `Rs' block needs special handling to order the |
* The full `Rs' block needs special handling to order the |