summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blocks.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blocks.c b/src/blocks.c
index bdd819e..fb2d54a 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -211,6 +211,7 @@ static bool ends_with_blank_line(cmark_node *node) {
cmark_node *cur = node;
while (cur != NULL) {
if (S_last_line_blank(cur)) {
+ S_set_last_line_blank(node, true);
return true;
}
if (S_type(cur) == CMARK_NODE_LIST || S_type(cur) == CMARK_NODE_ITEM) {
@@ -219,6 +220,7 @@ static bool ends_with_blank_line(cmark_node *node) {
cur = NULL;
}
}
+ S_set_last_line_blank(node, false);
return false;
}