Skip to content

Commit 3badf23

Browse files
authored
1 parent 753db68 commit 3badf23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/html_parser.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ class HtmlParser extends StatelessWidget {
405405
if (tree.style.display == Display.BLOCK) {
406406
wpc.data = false;
407407
}
408+
409+
if (tree is ImageContentElement || tree is SvgContentElement) {
410+
wpc.data = false;
411+
}
408412

409413
if (tree is TextContentElement) {
410414
if (wpc.data && tree.text.startsWith(' ')) {

0 commit comments

Comments
 (0)