Debug: strike through zero size text

pull/194/merge
M66B 4 years ago
parent 6c5865c2b9
commit dff669cdad

@ -734,16 +734,20 @@ public class HtmlHelper {
} }
Float fsize = getFontSize(value, current); Float fsize = getFontSize(value, current);
if (fsize != null && fsize != 0) { if (fsize != null)
if (!view) { if (fsize == 0) {
if (fsize < 1) if (BuildConfig.DEBUG)
fsize = FONT_SMALL; sb.append("text-decoration:line-through;");
else if (fsize > 1) } else {
fsize = FONT_LARGE; if (!view) {
if (fsize < 1)
fsize = FONT_SMALL;
else if (fsize > 1)
fsize = FONT_LARGE;
}
element.attr("x-font-size", Float.toString(fsize));
element.attr("x-font-size-rel", Float.toString(fsize / current));
} }
element.attr("x-font-size", Float.toString(fsize));
element.attr("x-font-size-rel", Float.toString(fsize / current));
}
break; break;
case "font-weight": case "font-weight":

Loading…
Cancel
Save