summaryrefslogtreecommitdiff
path: root/library/src/structure
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-28 17:57:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-28 17:57:16 +0100
commit836692e73cff0356e409a9ba5b4887b86809d4ca (patch)
treee174178047c368c66746ee073eea1b3129825479 /library/src/structure
parent989d170dc7318ca3cbaa5b76760eb14f4e6a8605 (diff)
Widow and orphan prevention
Diffstat (limited to 'library/src/structure')
-rw-r--r--library/src/structure/heading.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/src/structure/heading.rs b/library/src/structure/heading.rs
index 063f3c97..b251f27b 100644
--- a/library/src/structure/heading.rs
+++ b/library/src/structure/heading.rs
@@ -56,6 +56,7 @@ impl Finalize for HeadingNode {
map.set(TextNode::WEIGHT, FontWeight::BOLD);
map.set(BlockNode::ABOVE, VNode::block_around(above.into()));
map.set(BlockNode::BELOW, VNode::block_around(below.into()));
+ map.set(BlockNode::STICKY, true);
realized.styled_with_map(map)
}
}