Skip to content

Commit fd26a16

Browse files
committed
Merge changes with shrinkwrap fixes
1 parent cdcd018 commit fd26a16

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/html_parser.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -339,14 +339,12 @@ class HtmlParser extends StatelessWidget {
339339
style: newContext.style.generateTextStyle(),
340340
children: tree.children
341341
.expandIndexed((i, childTree) => [
342-
if (shrinkWrap &&
343-
childTree.style.display == Display.BLOCK &&
342+
if (childTree.style.display == Display.BLOCK &&
344343
i > 0 &&
345344
tree.children[i - 1] is ReplacedElement)
346345
TextSpan(text: "\n"),
347346
parseTree(newContext, childTree),
348-
if (shrinkWrap &&
349-
i != tree.children.length - 1 &&
347+
if (i != tree.children.length - 1 &&
350348
childTree.style.display == Display.BLOCK &&
351349
childTree.element?.localName != "html" &&
352350
childTree.element?.localName != "body")

0 commit comments

Comments
 (0)