version 1.86, 2017/02/05 18:13:28 |
version 1.87, 2017/03/15 11:29:50 |
|
|
static int |
static int |
man_SH_pre(MAN_ARGS) |
man_SH_pre(MAN_ARGS) |
{ |
{ |
if (n->type == ROFFT_HEAD) |
char *id; |
print_otag(h, TAG_H1, "c", "Sh"); |
|
|
if (n->type == ROFFT_HEAD) { |
|
id = html_make_id(n); |
|
print_otag(h, TAG_H1, "cTi", "Sh", id); |
|
print_otag(h, TAG_A, "chR", "selflink", id); |
|
free(id); |
|
} |
return 1; |
return 1; |
} |
} |
|
|
|
|
static int |
static int |
man_SS_pre(MAN_ARGS) |
man_SS_pre(MAN_ARGS) |
{ |
{ |
if (n->type == ROFFT_HEAD) |
char *id; |
print_otag(h, TAG_H2, "c", "Ss"); |
|
|
if (n->type == ROFFT_HEAD) { |
|
id = html_make_id(n); |
|
print_otag(h, TAG_H2, "cTi", "Ss", id); |
|
print_otag(h, TAG_A, "chR", "selflink", id); |
|
free(id); |
|
} |
return 1; |
return 1; |
} |
} |
|
|
|
|
assert(n->type == ROFFT_HEAD); |
assert(n->type == ROFFT_HEAD); |
if (n->child != NULL) { |
if (n->child != NULL) { |
assert(n->child->type == ROFFT_TEXT); |
assert(n->child->type == ROFFT_TEXT); |
print_otag(h, TAG_A, "ch", "Lk", n->child->string); |
print_otag(h, TAG_A, "cTh", "Lk", n->child->string); |
} |
} |
|
|
assert(n->next->type == ROFFT_BODY); |
assert(n->next->type == ROFFT_BODY); |