Small improvement

This commit is contained in:
M66B 2020-05-03 21:36:48 +02:00
parent 2f86382775
commit 667e9f8fd6
1 changed files with 3 additions and 1 deletions

View File

@ -544,7 +544,9 @@ public class HtmlHelper {
continue;
Integer color = parseColor(value, dark);
if (color != null) {
if (color == null)
element.removeAttr("color");
else {
// fromHtml does not support transparency
String c = String.format("#%06x", color);
sb.append("color:").append(c).append(";");