optimization

This commit is contained in:
Will McGugan
2025-08-29 11:08:47 +01:00
parent ef6a0f1621
commit 1b912fa73b

View File

@@ -705,7 +705,9 @@ class Content(Visual):
@property
def without_spans(self) -> Content:
"""The content with no spans"""
return Content(self.plain, [], self._cell_length)
if self._spans:
return Content(self.plain, [], self._cell_length)
return self
@property
def first_line(self) -> Content: