mirror of https://github.com/Textualize/rich.git
special case for style defs
This commit is contained in:
parent
85eca00a74
commit
655170417a
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue