From 655170417a907987db7529bbc853e8460c19d8ab Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Mon, 25 Jan 2021 22:09:41 +0000 Subject: [PATCH] special case for style defs --- rich/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rich/style.py b/rich/style.py index cda83806..a6b756b6 100644 --- a/rich/style.py +++ b/rich/style.py @@ -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 = {