version 1.212, 2014/11/27 16:20:31 |
version 1.214, 2014/11/30 05:29:00 |
Line 423 print_mdoc_node(MDOC_ARGS) |
|
Line 423 print_mdoc_node(MDOC_ARGS) |
|
* the "meta" table state. This will be reopened on the |
* the "meta" table state. This will be reopened on the |
* next table element. |
* next table element. |
*/ |
*/ |
if (h->tblt) { |
if (h->tblt != NULL) { |
print_tblclose(h); |
print_tblclose(h); |
t = h->tags.head; |
t = h->tags.head; |
} |
} |
|
assert(h->tblt == NULL); |
assert(NULL == h->tblt); |
if (mdocs[n->tok].pre && (n->end == ENDBODY_NOT || n->child)) |
if (mdocs[n->tok].pre && ENDBODY_NOT == n->end) |
|
child = (*mdocs[n->tok].pre)(meta, n, h); |
child = (*mdocs[n->tok].pre)(meta, n, h); |
break; |
break; |
} |
} |
Line 454 print_mdoc_node(MDOC_ARGS) |
|
Line 453 print_mdoc_node(MDOC_ARGS) |
|
case MDOC_EQN: |
case MDOC_EQN: |
break; |
break; |
default: |
default: |
if (mdocs[n->tok].post && ENDBODY_NOT == n->end) |
if ( ! mdocs[n->tok].post || n->flags & MDOC_ENDED) |
(*mdocs[n->tok].post)(meta, n, h); |
break; |
|
(*mdocs[n->tok].post)(meta, n, h); |
|
if (n->end != ENDBODY_NOT) |
|
n->pending->flags |= MDOC_ENDED; |
|
if (n->end == ENDBODY_NOSPACE) |
|
h->flags |= HTML_NOSPACE; |
break; |
break; |
} |
} |
} |
} |
|
|
mdoc_pf_post(MDOC_ARGS) |
mdoc_pf_post(MDOC_ARGS) |
{ |
{ |
|
|
h->flags |= HTML_NOSPACE; |
if ( ! (n->next == NULL || n->next->flags & MDOC_LINE)) |
|
h->flags |= HTML_NOSPACE; |
} |
} |
|
|
static int |
static int |
|
|
mdoc_quote_post(MDOC_ARGS) |
mdoc_quote_post(MDOC_ARGS) |
{ |
{ |
|
|
if (MDOC_BODY != n->type) |
if (n->type != MDOC_BODY && n->type != MDOC_ELEM) |
return; |
return; |
|
|
if (MDOC_En != n->tok) |
if ( ! (n->tok == MDOC_En || |
|
(n->tok == MDOC_Eo && n->end == ENDBODY_SPACE))) |
h->flags |= HTML_NOSPACE; |
h->flags |= HTML_NOSPACE; |
|
|
switch (n->tok) { |
switch (n->tok) { |