version 1.234, 2015/09/26 00:22:07 |
version 1.235, 2015/09/26 00:32:35 |
Line 641 mdoc_nm_pre(MDOC_ARGS) |
|
Line 641 mdoc_nm_pre(MDOC_ARGS) |
|
int len; |
int len; |
|
|
switch (n->type) { |
switch (n->type) { |
case ROFFT_ELEM: |
|
PAIR_CLASS_INIT(&tag, "name"); |
|
print_otag(h, TAG_B, 1, &tag); |
|
if (NULL == n->child && meta->name) |
|
print_text(h, meta->name); |
|
return(1); |
|
case ROFFT_HEAD: |
case ROFFT_HEAD: |
print_otag(h, TAG_TD, 0, NULL); |
print_otag(h, TAG_TD, 0, NULL); |
|
/* FALLTHROUGH */ |
|
case ROFFT_ELEM: |
PAIR_CLASS_INIT(&tag, "name"); |
PAIR_CLASS_INIT(&tag, "name"); |
print_otag(h, TAG_B, 1, &tag); |
print_otag(h, TAG_B, 1, &tag); |
if (NULL == n->child && meta->name) |
if (n->child == NULL && meta->name != NULL) |
print_text(h, meta->name); |
print_text(h, meta->name); |
return(1); |
return(1); |
case ROFFT_BODY: |
case ROFFT_BODY: |
Line 669 mdoc_nm_pre(MDOC_ARGS) |
|
Line 665 mdoc_nm_pre(MDOC_ARGS) |
|
if (n->type == ROFFT_TEXT) |
if (n->type == ROFFT_TEXT) |
len += html_strlen(n->string); |
len += html_strlen(n->string); |
|
|
if (0 == len && meta->name) |
if (len == 0 && meta->name != NULL) |
len = html_strlen(meta->name); |
len = html_strlen(meta->name); |
|
|
SCALE_HS_INIT(&su, len); |
SCALE_HS_INIT(&su, len); |