version 1.302, 2016/08/09 15:09:27 |
version 1.305, 2016/08/10 20:17:50 |
Line 502 post_bl_norm(POST_ARGS) |
|
Line 502 post_bl_norm(POST_ARGS) |
|
mandoc_msg(MANDOCERR_BL_NOTYPE, mdoc->parse, |
mandoc_msg(MANDOCERR_BL_NOTYPE, mdoc->parse, |
n->line, n->pos, "Bl"); |
n->line, n->pos, "Bl"); |
n->norm->Bl.type = LIST_item; |
n->norm->Bl.type = LIST_item; |
|
mdoclt = MDOC_Item; |
} |
} |
|
|
/* |
/* |
Line 1063 post_it(POST_ARGS) |
|
Line 1064 post_it(POST_ARGS) |
|
mdoc_argnames[nbl->args->argv[0].arg]); |
mdoc_argnames[nbl->args->argv[0].arg]); |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case LIST_item: |
case LIST_item: |
if (nit->head->child != NULL) |
if ((nch = nit->head->child) != NULL) |
mandoc_vmsg(MANDOCERR_ARG_SKIP, |
mandoc_vmsg(MANDOCERR_ARG_SKIP, |
mdoc->parse, nit->line, nit->pos, |
mdoc->parse, nit->line, nit->pos, |
"It %s", nit->head->child->string); |
"It %s", nch->string == NULL ? |
|
mdoc_macronames[nch->tok] : nch->string); |
break; |
break; |
case LIST_column: |
case LIST_column: |
cols = (int)nbl->norm->Bl.ncols; |
cols = (int)nbl->norm->Bl.ncols; |
Line 1759 post_sh_authors(POST_ARGS) |
|
Line 1761 post_sh_authors(POST_ARGS) |
|
static void |
static void |
post_sh_head(POST_ARGS) |
post_sh_head(POST_ARGS) |
{ |
{ |
const char *goodsec; |
struct roff_node *nch; |
enum roff_sec sec; |
const char *goodsec; |
|
enum roff_sec sec; |
|
|
/* |
/* |
* Process a new section. Sections are either "named" or |
* Process a new section. Sections are either "named" or |
Line 1776 post_sh_head(POST_ARGS) |
|
Line 1779 post_sh_head(POST_ARGS) |
|
if (sec != SEC_NAME && mdoc->lastnamed == SEC_NONE) |
if (sec != SEC_NAME && mdoc->lastnamed == SEC_NONE) |
mandoc_vmsg(MANDOCERR_NAMESEC_FIRST, mdoc->parse, |
mandoc_vmsg(MANDOCERR_NAMESEC_FIRST, mdoc->parse, |
mdoc->last->line, mdoc->last->pos, "Sh %s", |
mdoc->last->line, mdoc->last->pos, "Sh %s", |
sec == SEC_CUSTOM ? mdoc->last->child->string : |
sec != SEC_CUSTOM ? secnames[sec] : |
secnames[sec]); |
(nch = mdoc->last->child) == NULL ? "" : |
|
nch->type == ROFFT_TEXT ? nch->string : |
|
mdoc_macronames[nch->tok]); |
|
|
/* The SYNOPSIS gets special attention in other areas. */ |
/* The SYNOPSIS gets special attention in other areas. */ |
|
|