diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-28 17:57:16 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-28 17:57:16 +0100 |
| commit | 836692e73cff0356e409a9ba5b4887b86809d4ca (patch) | |
| tree | e174178047c368c66746ee073eea1b3129825479 /library/src/structure | |
| parent | 989d170dc7318ca3cbaa5b76760eb14f4e6a8605 (diff) | |
Widow and orphan prevention
Diffstat (limited to 'library/src/structure')
| -rw-r--r-- | library/src/structure/heading.rs | 1 |
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) } } |
