mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
add test for orphan prevention of alone subheaders
Consecutive subheaders can be broken apart in special cases
This commit is contained in:
parent
e9e37a313a
commit
e76ea64cb0
BIN
tests/ref/grid-subheaders-alone-no-orphan-prevention.png
Normal file
BIN
tests/ref/grid-subheaders-alone-no-orphan-prevention.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 254 B |
@ -436,3 +436,18 @@
|
|||||||
[b]
|
[b]
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
--- grid-subheaders-alone-no-orphan-prevention ---
|
||||||
|
#set page(height: 5.3em)
|
||||||
|
#v(2em)
|
||||||
|
#grid(
|
||||||
|
grid.header(
|
||||||
|
// (
|
||||||
|
[L1]
|
||||||
|
),
|
||||||
|
grid.header(
|
||||||
|
// (
|
||||||
|
level: 2,
|
||||||
|
[L2]
|
||||||
|
),
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user