There was an error while loading. Please reload this page.
1 parent 603ebb4 commit db74d32Copy full SHA for db74d32
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