We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 603ebb4 + db74d32 commit 229f0d6Copy full SHA for 229f0d6
typescript/libs/popup_formatter.py
@@ -6,13 +6,13 @@ def format_css(style):
6
"""
7
result = ""
8
9
- if (style["foreground"]):
+ if ("foreground" in style and style["foreground"]):
10
result += "color: {0};".format(style["foreground"])
11
12
- if (style["bold"]):
+ if ("bold" in style and style["bold"]):
13
result += "font-weight: bold;"
14
15
- if (style["italic"]):
+ if ("italic" in style and style["italic"]):
16
result += "font-style: italic;"
17
18
return result
0 commit comments