We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e9f01d commit de266e1Copy full SHA for de266e1
1 file changed
elm/web/document.py
@@ -77,7 +77,7 @@ def __repr__(self):
77
@property
78
def empty(self):
79
"""bool: ``True`` if the document contains no pages."""
80
- return not any(_non_empty_pages(self.pages))
+ return not any(_non_empty_pages(self.text.split("\n")))
81
82
@cached_property
83
def raw_pages(self):
0 commit comments