version 1.322, 2015/07/25 14:18:04 |
version 1.325, 2015/09/14 12:57:47 |
Line 95 static int termp_bx_pre(DECL_ARGS); |
|
Line 95 static int termp_bx_pre(DECL_ARGS); |
|
static int termp_cd_pre(DECL_ARGS); |
static int termp_cd_pre(DECL_ARGS); |
static int termp_d1_pre(DECL_ARGS); |
static int termp_d1_pre(DECL_ARGS); |
static int termp_eo_pre(DECL_ARGS); |
static int termp_eo_pre(DECL_ARGS); |
|
static int termp_er_pre(DECL_ARGS); |
static int termp_ex_pre(DECL_ARGS); |
static int termp_ex_pre(DECL_ARGS); |
static int termp_fa_pre(DECL_ARGS); |
static int termp_fa_pre(DECL_ARGS); |
static int termp_fd_pre(DECL_ARGS); |
static int termp_fd_pre(DECL_ARGS); |
Line 145 static const struct termact termacts[MDOC_MAX] = { |
|
Line 146 static const struct termact termacts[MDOC_MAX] = { |
|
{ termp_under_pre, NULL }, /* Ar */ |
{ termp_under_pre, NULL }, /* Ar */ |
{ termp_cd_pre, NULL }, /* Cd */ |
{ termp_cd_pre, NULL }, /* Cd */ |
{ termp_bold_pre, NULL }, /* Cm */ |
{ termp_bold_pre, NULL }, /* Cm */ |
{ NULL, NULL }, /* Dv */ |
{ termp_li_pre, NULL }, /* Dv */ |
{ NULL, NULL }, /* Er */ |
{ termp_er_pre, NULL }, /* Er */ |
{ termp_tag_pre, NULL }, /* Ev */ |
{ termp_tag_pre, NULL }, /* Ev */ |
{ termp_ex_pre, NULL }, /* Ex */ |
{ termp_ex_pre, NULL }, /* Ex */ |
{ termp_fa_pre, NULL }, /* Fa */ |
{ termp_fa_pre, NULL }, /* Fa */ |
Line 1480 termp_fn_pre(DECL_ARGS) |
|
Line 1481 termp_fn_pre(DECL_ARGS) |
|
term_word(p, n->string); |
term_word(p, n->string); |
term_fontpop(p); |
term_fontpop(p); |
|
|
if (n->sec == SEC_DESCRIPTION) { |
if (n->sec == SEC_DESCRIPTION) |
if ( ! tag_get(n->string, 0, ++fn_prio)) |
tag_put(n->string, ++fn_prio, p->line); |
tag_put(n->string, 0, fn_prio, p->line); |
|
} |
|
|
|
if (pretty) { |
if (pretty) { |
term_flushln(p); |
term_flushln(p); |
Line 2273 termp_under_pre(DECL_ARGS) |
|
Line 2272 termp_under_pre(DECL_ARGS) |
|
} |
} |
|
|
static int |
static int |
|
termp_er_pre(DECL_ARGS) |
|
{ |
|
|
|
if (n->sec == SEC_ERRORS && |
|
(n->parent->tok == MDOC_It || |
|
(n->parent->tok == MDOC_Bq && |
|
n->parent->parent->parent->tok == MDOC_It))) |
|
tag_put(n->child->string, 1, p->line); |
|
return(1); |
|
} |
|
|
|
static int |
termp_tag_pre(DECL_ARGS) |
termp_tag_pre(DECL_ARGS) |
{ |
{ |
|
|
Line 2282 termp_tag_pre(DECL_ARGS) |
|
Line 2293 termp_tag_pre(DECL_ARGS) |
|
(n->parent->tok == MDOC_It || |
(n->parent->tok == MDOC_It || |
(n->parent->tok == MDOC_Xo && |
(n->parent->tok == MDOC_Xo && |
n->parent->parent->prev == NULL && |
n->parent->parent->prev == NULL && |
n->parent->parent->parent->tok == MDOC_It)) && |
n->parent->parent->parent->tok == MDOC_It))) |
! tag_get(n->child->string, 0, 1)) |
tag_put(n->child->string, 1, p->line); |
tag_put(n->child->string, 0, 1, p->line); |
|
return(1); |
return(1); |
} |
} |