Small fix

This commit is contained in:
M66B 2020-02-02 13:01:46 +01:00
parent 0481ba0cfc
commit 8208709840
1 changed files with 3 additions and 3 deletions

View File

@ -331,8 +331,8 @@ public class HtmlHelper {
if (kv.length == 2) { if (kv.length == 2) {
String key = kv[0].trim().toLowerCase(Locale.ROOT); String key = kv[0].trim().toLowerCase(Locale.ROOT);
String value = kv[1].toLowerCase(Locale.ROOT) String value = kv[1].toLowerCase(Locale.ROOT)
.trim()
.replace("!important", "") .replace("!important", "")
.trim()
.replaceAll("\\s+", " "); .replaceAll("\\s+", " ");
switch (key) { switch (key) {
case "color": case "color":
@ -355,7 +355,7 @@ public class HtmlHelper {
case "display": case "display":
if (!display_hidden && "none".equals(value)) { if (!display_hidden && "none".equals(value)) {
Log.i("Removing element " + element.tagName()); Log.i("Removing hidden element " + element.tagName());
element.empty(); element.empty();
} }
if ("inline".equals(value) || "inline-block".equals(value)) if ("inline".equals(value) || "inline-block".equals(value))
@ -368,7 +368,7 @@ public class HtmlHelper {
//case "line-height": //case "line-height":
if (!display_hidden && if (!display_hidden &&
("0".equals(value) || "0px".equals(value))) { ("0".equals(value) || "0px".equals(value))) {
Log.i("Removing element " + element.tagName()); Log.i("Removing hidden element " + element.tagName());
element.empty(); element.empty();
} }
break; break;