mirror of https://github.com/M66B/FairEmail.git
Debug: strike through zero size text
This commit is contained in:
parent
6c5865c2b9
commit
dff669cdad
|
@ -734,16 +734,20 @@ public class HtmlHelper {
|
|||
}
|
||||
|
||||
Float fsize = getFontSize(value, current);
|
||||
if (fsize != null && fsize != 0) {
|
||||
if (!view) {
|
||||
if (fsize < 1)
|
||||
fsize = FONT_SMALL;
|
||||
else if (fsize > 1)
|
||||
fsize = FONT_LARGE;
|
||||
if (fsize != null)
|
||||
if (fsize == 0) {
|
||||
if (BuildConfig.DEBUG)
|
||||
sb.append("text-decoration:line-through;");
|
||||
} else {
|
||||
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;
|
||||
|
||||
case "font-weight":
|
||||
|
|
Loading…
Reference in New Issue