LibMarkdown: Treat whitespace-only lines as blank in paragraphs

This commit is contained in:
Peter Elliott 2022-04-25 18:11:32 -06:00 committed by Andreas Kling
parent aef5aac772
commit 5847d326c3
Notes: sideshowbarker 2024-07-17 11:31:48 +09:00

View File

@ -97,7 +97,7 @@ OwnPtr<ContainerBlock> ContainerBlock::parse(LineIterator& lines)
if (lines.is_end())
break;
if ((*lines).is_empty()) {
if ((*lines).is_whitespace()) {
has_trailing_blank_lines = true;
++lines;