version 1.247, 2017/04/14 19:34:54 |
version 1.248, 2017/04/17 12:52:00 |
|
|
const struct roff_node *link, *descr; |
const struct roff_node *link, *descr; |
int display; |
int display; |
|
|
if (NULL == (link = n->child)) |
if ((link = n->child) == NULL) |
return 0; |
return 0; |
|
|
if (NULL != (descr = link->next)) { |
/* Link text. */ |
|
if ((descr = link->next) != NULL && !(descr->flags & NODE_DELIMC)) { |
term_fontpush(p, TERMFONT_UNDER); |
term_fontpush(p, TERMFONT_UNDER); |
while (NULL != descr) { |
while (descr != NULL && !(descr->flags & NODE_DELIMC)) { |
term_word(p, descr->string); |
term_word(p, descr->string); |
descr = descr->next; |
descr = descr->next; |
} |
} |
|
|
term_word(p, ":"); |
term_word(p, ":"); |
} |
} |
|
|
|
/* Link target. */ |
display = term_strlen(p, link->string) >= 26; |
display = term_strlen(p, link->string) >= 26; |
if (display) { |
if (display) { |
term_newln(p); |
term_newln(p); |
p->offset += term_len(p, p->defindent + 1); |
p->offset += term_len(p, p->defindent + 1); |
} |
} |
|
|
term_fontpush(p, TERMFONT_BOLD); |
term_fontpush(p, TERMFONT_BOLD); |
term_word(p, link->string); |
term_word(p, link->string); |
term_fontpop(p); |
term_fontpop(p); |
|
|
|
/* Trailing punctuation. */ |
|
while (descr != NULL) { |
|
p->flags |= TERMP_NOSPACE; |
|
term_word(p, descr->string); |
|
descr = descr->next; |
|
} |
if (display) |
if (display) |
term_newln(p); |
term_newln(p); |
|
|
return 0; |
return 0; |
} |
} |
|
|