mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-23 06:41:32 +03:00
Fix string comparison for "none"/"" fill values
This commit is contained in:
parent
4a9ffbbacd
commit
56f8d47036
@ -1268,7 +1268,7 @@ class AnsiArtDocument:
|
||||
if style_part.startswith("fill:"):
|
||||
fill = style_part[len("fill:"):]
|
||||
break
|
||||
if fill is None or fill is "none" or fill is "":
|
||||
if fill is None or fill == "none" or fill == "":
|
||||
print("Warning: element has no fill defined: " + ET.tostring(el, encoding="unicode"))
|
||||
return None
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user