version 1.230, 2018/05/28 14:13:36 |
version 1.235, 2018/06/25 13:45:57 |
Line 69 static const struct htmldata htmltags[TAG_MAX] = { |
|
Line 69 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}, |
{"colgroup", HTML_NLALL | HTML_INDENT}, |
|
{"col", HTML_NOSTACK | HTML_AUTOCLOSE | HTML_NLALL}, |
|
{"tr", HTML_NLALL | HTML_INDENT}, |
{"tr", HTML_NLALL | HTML_INDENT}, |
{"td", HTML_NLAROUND}, |
{"td", HTML_NLAROUND}, |
{"li", HTML_NLAROUND | HTML_INDENT}, |
{"li", HTML_NLAROUND | HTML_INDENT}, |
Line 694 print_otag(struct html *h, enum htmltag tag, const cha |
|
Line 692 print_otag(struct html *h, enum htmltag tag, const cha |
|
su = &mysu; |
su = &mysu; |
a2width(arg2, su); |
a2width(arg2, su); |
} |
} |
if (*fmt == '*') { |
|
if (su != NULL && su->unit == SCALE_EN && |
|
su->scale > 5.9 && su->scale < 6.1) |
|
su = NULL; |
|
fmt++; |
|
} |
|
if (*fmt == '+') { |
if (*fmt == '+') { |
if (su != NULL) { |
if (su != NULL) { |
/* Make even bold text fit. */ |
/* Make even bold text fit. */ |
Line 709 print_otag(struct html *h, enum htmltag tag, const cha |
|
Line 701 print_otag(struct html *h, enum htmltag tag, const cha |
|
} |
} |
fmt++; |
fmt++; |
} |
} |
if (*fmt == '-') { |
|
if (su != NULL) |
|
su->scale *= -1.0; |
|
fmt++; |
|
} |
|
break; |
break; |
default: |
default: |
abort(); |
abort(); |
Line 724 print_otag(struct html *h, enum htmltag tag, const cha |
|
Line 711 print_otag(struct html *h, enum htmltag tag, const cha |
|
switch (*fmt++) { |
switch (*fmt++) { |
case 'h': |
case 'h': |
attr = "height"; |
attr = "height"; |
break; |
|
case 'i': |
|
attr = "text-indent"; |
|
break; |
break; |
case 'l': |
case 'l': |
attr = "margin-left"; |
attr = "margin-left"; |