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 cdcd018 commit fd26a16Copy full SHA for fd26a16
lib/html_parser.dart
@@ -339,14 +339,12 @@ class HtmlParser extends StatelessWidget {
339
style: newContext.style.generateTextStyle(),
340
children: tree.children
341
.expandIndexed((i, childTree) => [
342
- if (shrinkWrap &&
343
- childTree.style.display == Display.BLOCK &&
+ if (childTree.style.display == Display.BLOCK &&
344
i > 0 &&
345
tree.children[i - 1] is ReplacedElement)
346
TextSpan(text: "\n"),
347
parseTree(newContext, childTree),
348
349
- i != tree.children.length - 1 &&
+ if (i != tree.children.length - 1 &&
350
childTree.style.display == Display.BLOCK &&
351
childTree.element?.localName != "html" &&
352
childTree.element?.localName != "body")
0 commit comments