special case for style defs

This commit is contained in:
Will McGugan 2021-01-25 22:09:41 +00:00
parent 85eca00a74
commit 655170417a
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ class Style:
Returns:
`Style`: A Style instance.
"""
if style_definition.strip() == "none":
if style_definition.strip() == "none" or not style_definition:
return cls.null()
style_attributes = {