diff --git a/src/apps/haiku-depot/textview/MarkupParser.cpp b/src/apps/haiku-depot/textview/MarkupParser.cpp index 258025feb7..5c11c14dc6 100644 --- a/src/apps/haiku-depot/textview/MarkupParser.cpp +++ b/src/apps/haiku-depot/textview/MarkupParser.cpp @@ -290,6 +290,11 @@ MarkupParser::_FinishParagraph(bool isLast) if (!isLast) fCurrentParagraph.Append(TextSpan("\n", *fCurrentCharacterStyle)); + if (fCurrentParagraph.IsEmpty()) { + // Append empty span + fCurrentParagraph.Append(TextSpan("", fNormalStyle)); + } + fTextDocument->Append(fCurrentParagraph); fCurrentParagraph.Clear(); fCurrentParagraph.SetStyle(fParagraphStyle);