version 1.308, 2015/02/05 01:46:56 |
version 1.311, 2015/02/17 20:37:17 |
Line 309 print_mdoc_node(DECL_ARGS) |
|
Line 309 print_mdoc_node(DECL_ARGS) |
|
chld = 1; |
chld = 1; |
offset = p->offset; |
offset = p->offset; |
rmargin = p->rmargin; |
rmargin = p->rmargin; |
|
n->flags &= ~MDOC_ENDED; |
n->prev_font = p->fonti; |
n->prev_font = p->fonti; |
|
|
memset(&npair, 0, sizeof(struct termpair)); |
memset(&npair, 0, sizeof(struct termpair)); |
Line 361 print_mdoc_node(DECL_ARGS) |
|
Line 362 print_mdoc_node(DECL_ARGS) |
|
print_mdoc_nodelist(p, &npair, meta, n->child); |
print_mdoc_nodelist(p, &npair, meta, n->child); |
|
|
term_fontpopq(p, |
term_fontpopq(p, |
(ENDBODY_NOT == n->end ? n : n->pending)->prev_font); |
(ENDBODY_NOT == n->end ? n : n->body)->prev_font); |
|
|
switch (n->type) { |
switch (n->type) { |
case MDOC_TEXT: |
case MDOC_TEXT: |
Line 381 print_mdoc_node(DECL_ARGS) |
|
Line 382 print_mdoc_node(DECL_ARGS) |
|
* that it must not call the post handler again. |
* that it must not call the post handler again. |
*/ |
*/ |
if (ENDBODY_NOT != n->end) |
if (ENDBODY_NOT != n->end) |
n->pending->flags |= MDOC_ENDED; |
n->body->flags |= MDOC_ENDED; |
|
|
/* |
/* |
* End of line terminating an implicit block |
* End of line terminating an implicit block |
Line 1872 termp_quote_pre(DECL_ARGS) |
|
Line 1873 termp_quote_pre(DECL_ARGS) |
|
case MDOC_Do: |
case MDOC_Do: |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case MDOC_Dq: |
case MDOC_Dq: |
term_word(p, "\\(lq"); |
term_word(p, "\\(Lq"); |
break; |
break; |
case MDOC_En: |
case MDOC_En: |
if (NULL == n->norm->Es || |
if (NULL == n->norm->Es || |
Line 1941 termp_quote_post(DECL_ARGS) |
|
Line 1942 termp_quote_post(DECL_ARGS) |
|
case MDOC_Do: |
case MDOC_Do: |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case MDOC_Dq: |
case MDOC_Dq: |
term_word(p, "\\(rq"); |
term_word(p, "\\(Rq"); |
break; |
break; |
case MDOC_En: |
case MDOC_En: |
if (n->norm->Es == NULL || |
if (n->norm->Es == NULL || |
Line 1989 termp_eo_pre(DECL_ARGS) |
|
Line 1990 termp_eo_pre(DECL_ARGS) |
|
n->child->end != ENDBODY_NOT) |
n->child->end != ENDBODY_NOT) |
term_word(p, "\\&"); |
term_word(p, "\\&"); |
else if (n->end != ENDBODY_NOT ? n->child != NULL : |
else if (n->end != ENDBODY_NOT ? n->child != NULL : |
n->parent->head->child != NULL && |
n->parent->head->child != NULL && (n->child != NULL || |
(n->parent->body->child != NULL || |
(n->parent->tail != NULL && n->parent->tail->child != NULL))) |
n->parent->tail->child != NULL)) |
|
p->flags |= TERMP_NOSPACE; |
p->flags |= TERMP_NOSPACE; |
|
|
return(1); |
return(1); |