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 0874d55 commit 9192f93Copy full SHA for 9192f93
lib/html_parser.dart
@@ -278,7 +278,7 @@ class HtmlParser extends StatelessWidget {
278
}
279
280
//Return the correct InlineSpan based on the element type.
281
- if (tree.style.display == Display.BLOCK) {
+ if (tree.style.display == Display.BLOCK && tree.children.isNotEmpty) {
282
return WidgetSpan(
283
child: ContainerSpan(
284
key: AnchorKey.of(key, tree),
0 commit comments