Skip to content

Commit 3da05e5

Browse files
committed
Fix whitespace rendering between list items; fixes Sub6Resources#878
1 parent 9cc8a56 commit 3da05e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/html_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ class HtmlParser extends StatelessWidget {
949949
if (child is EmptyContentElement || child is EmptyLayoutElement) {
950950
toRemove.add(child);
951951
} else if (child is TextContentElement
952-
&& tree.name == "body"
952+
&& (tree.name == "body" || tree.name == "ul")
953953
&& child.text!.replaceAll(' ', '').isEmpty) {
954954
toRemove.add(child);
955955
} else if (child is TextContentElement

0 commit comments

Comments
 (0)