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 1f22d9f commit 17093eeCopy full SHA for 17093ee
lib/html_parser.dart
@@ -888,7 +888,9 @@ class HtmlParser extends StatelessWidget {
888
tree.children.forEach((child) {
889
if (child is EmptyContentElement || child is EmptyLayoutElement) {
890
toRemove.add(child);
891
- } else if (child is TextContentElement && (child.text!.trim().isEmpty)) {
+ } else if (child is TextContentElement
892
+ && child.text!.trim().isEmpty
893
+ && child.style.whiteSpace != WhiteSpace.PRE) {
894
895
} else if (child is TextContentElement &&
896
child.style.whiteSpace != WhiteSpace.PRE &&
0 commit comments