Skip to content

Commit b5046d9

Browse files
Merge pull request Sub6Resources#225 from ngaurav/new-parser
Fixes Sub6Resources#217
2 parents c68c59d + 3badf23 commit b5046d9

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
@@ -408,6 +408,10 @@ class HtmlParser extends StatelessWidget {
408408
if (tree.style.display == Display.BLOCK) {
409409
wpc.data = false;
410410
}
411+
412+
if (tree is ImageContentElement || tree is SvgContentElement) {
413+
wpc.data = false;
414+
}
411415

412416
if (tree is TextContentElement) {
413417
if (wpc.data && tree.text.startsWith(' ')) {

0 commit comments

Comments
 (0)