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 b57450b commit 52376e5Copy full SHA for 52376e5
lib/html_parser.dart
@@ -318,8 +318,9 @@ class HtmlRichTextParser extends StatelessWidget {
318
if (!parseContext.parentElement.children.isEmpty) {
319
lastString = parseContext.parentElement.children.last.text;
320
}
321
- if (lastString.endsWith(' ') || lastString.endsWith('\n'))
322
- finalText = finalText.trimLeft();
+ if (lastString == '' ||
+ lastString.endsWith(' ') ||
323
+ lastString.endsWith('\n')) finalText = finalText.trimLeft();
324
325
326
// if the finalText is actually empty, just return
0 commit comments