summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown
diff options
context:
space:
mode:
authorPeter Elliott <pelliott@ualberta.ca>2022-04-25 18:11:32 -0600
committerAndreas Kling <kling@serenityos.org>2022-04-26 15:02:26 +0200
commit5847d326c3d6b36d8d34ba49ebe53497bbaa8437 (patch)
treed56b87b5ea5c4cff9b1abb53c8028732bb6f2c02 /Userland/Libraries/LibMarkdown
parentaef5aac7725cc42a1f0b50e56e0daa9f003fed06 (diff)
downloadserenity-5847d326c3d6b36d8d34ba49ebe53497bbaa8437.zip
LibMarkdown: Treat whitespace-only lines as blank in paragraphs
Diffstat (limited to 'Userland/Libraries/LibMarkdown')
-rw-r--r--Userland/Libraries/LibMarkdown/ContainerBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibMarkdown/ContainerBlock.cpp b/Userland/Libraries/LibMarkdown/ContainerBlock.cpp
index 7d6223c09a..026d77e9be 100644
--- a/Userland/Libraries/LibMarkdown/ContainerBlock.cpp
+++ b/Userland/Libraries/LibMarkdown/ContainerBlock.cpp
@@ -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;