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.
2 parents 1133dc9 + 9192f93 commit 6788a56Copy full SHA for 6788a56
lib/html_parser.dart
@@ -317,7 +317,7 @@ class HtmlParser extends StatelessWidget {
317
}
318
319
//Return the correct InlineSpan based on the element type.
320
- if (tree.style.display == Display.BLOCK) {
+ if (tree.style.display == Display.BLOCK && tree.children.isNotEmpty) {
321
return WidgetSpan(
322
child: ContainerSpan(
323
key: AnchorKey.of(key, tree),
0 commit comments