We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03ea06 commit d9ceb1dCopy full SHA for d9ceb1d
lib/html_parser.dart
@@ -944,8 +944,8 @@ class HtmlParser extends StatelessWidget {
944
if (child is EmptyContentElement || child is EmptyLayoutElement) {
945
toRemove.add(child);
946
} else if (child is TextContentElement
947
- && tree.name == "body"
948
- && child.text!.trim().isEmpty) {
+ && tree.name == "body"
+ && child.text!.replaceAll(' ', '').isEmpty) {
949
950
951
&& child.text!.isEmpty
0 commit comments