version 1.204, 2017/01/29 14:02:41 |
version 1.209, 2017/03/14 01:35:15 |
Line 65 static const struct htmldata htmltags[TAG_MAX] = { |
|
Line 65 static const struct htmldata htmltags[TAG_MAX] = { |
|
{"br", HTML_NOSTACK | HTML_AUTOCLOSE | HTML_NLALL}, |
{"br", HTML_NOSTACK | HTML_AUTOCLOSE | HTML_NLALL}, |
{"a", 0}, |
{"a", 0}, |
{"table", HTML_NLALL | HTML_INDENT}, |
{"table", HTML_NLALL | HTML_INDENT}, |
{"tbody", HTML_NLALL | HTML_INDENT}, |
{"colgroup", HTML_NLALL | HTML_INDENT}, |
{"col", HTML_NOSTACK | HTML_AUTOCLOSE | HTML_NLALL}, |
{"col", HTML_NOSTACK | HTML_AUTOCLOSE | HTML_NLALL}, |
{"tr", HTML_NLALL | HTML_INDENT}, |
{"tr", HTML_NLALL | HTML_INDENT}, |
{"td", HTML_NLAROUND}, |
{"td", HTML_NLAROUND}, |
Line 76 static const struct htmldata htmltags[TAG_MAX] = { |
|
Line 76 static const struct htmldata htmltags[TAG_MAX] = { |
|
{"dt", HTML_NLAROUND}, |
{"dt", HTML_NLAROUND}, |
{"dd", HTML_NLAROUND | HTML_INDENT}, |
{"dd", HTML_NLAROUND | HTML_INDENT}, |
{"pre", HTML_NLALL | HTML_NOINDENT}, |
{"pre", HTML_NLALL | HTML_NOINDENT}, |
|
{"var", 0}, |
|
{"cite", 0}, |
{"b", 0}, |
{"b", 0}, |
{"i", 0}, |
{"i", 0}, |
{"code", 0}, |
{"code", 0}, |
Line 532 print_otag(struct html *h, enum htmltag tag, const cha |
|
Line 534 print_otag(struct html *h, enum htmltag tag, const cha |
|
print_byte(h, '='); |
print_byte(h, '='); |
print_byte(h, '"'); |
print_byte(h, '"'); |
switch (*fmt) { |
switch (*fmt) { |
case 'M': |
|
print_href(h, arg1, arg2, 1); |
|
fmt++; |
|
break; |
|
case 'I': |
case 'I': |
print_href(h, arg1, NULL, 0); |
print_href(h, arg1, NULL, 0); |
fmt++; |
fmt++; |
break; |
break; |
|
case 'M': |
|
print_href(h, arg1, arg2, 1); |
|
fmt++; |
|
break; |
case 'R': |
case 'R': |
print_byte(h, '#'); |
print_byte(h, '#'); |
|
print_encode(h, arg1, NULL, 1); |
fmt++; |
fmt++; |
/* FALLTHROUGH */ |
break; |
|
case 'T': |
|
print_encode(h, arg1, NULL, 1); |
|
print_word(h, "\" title=\""); |
|
print_encode(h, arg1, NULL, 1); |
|
fmt++; |
|
break; |
default: |
default: |
print_encode(h, arg1, NULL, 1); |
print_encode(h, arg1, NULL, 1); |
break; |
break; |
Line 582 print_otag(struct html *h, enum htmltag tag, const cha |
|
Line 591 print_otag(struct html *h, enum htmltag tag, const cha |
|
break; |
break; |
su = &mysu; |
su = &mysu; |
a2width(arg2, su); |
a2width(arg2, su); |
|
/* Increase width to make even bold text fit. */ |
|
su->scale *= 1.1; |
if (fmt[-1] == 'W') |
if (fmt[-1] == 'W') |
su->scale *= -1.0; |
su->scale *= -1.0; |
break; |
break; |