|
|
@ -41,9 +41,7 @@ class TextLine extends StatelessWidget { |
|
|
|
// newline, which is unexpected and probably we should find out the |
|
|
|
// newline, which is unexpected and probably we should find out the |
|
|
|
// root cause |
|
|
|
// root cause |
|
|
|
final childCount = line.childCount; |
|
|
|
final childCount = line.childCount; |
|
|
|
if (line.hasEmbed || |
|
|
|
if (line.hasEmbed || (childCount > 1 && line.children.first is Embed)) { |
|
|
|
(childCount > 1 && line.children.first is Embed)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
final embed = line.children.first as Embed; |
|
|
|
final embed = line.children.first as Embed; |
|
|
|
return EmbedProxy(embedBuilder(context, embed)); |
|
|
|
return EmbedProxy(embedBuilder(context, embed)); |
|
|
|
} |
|
|
|
} |
|
|
|