Skip to content

Commit de266e1

Browse files
committed
Update logic again
1 parent 5e9f01d commit de266e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

elm/web/document.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __repr__(self):
7777
@property
7878
def empty(self):
7979
"""bool: ``True`` if the document contains no pages."""
80-
return not any(_non_empty_pages(self.pages))
80+
return not any(_non_empty_pages(self.text.split("\n")))
8181

8282
@cached_property
8383
def raw_pages(self):

0 commit comments

Comments
 (0)