mirror of https://github.com/stelzo/typst.git
parent
6720d8c301
commit
c5cdbaeaf8
|
|
@ -175,6 +175,10 @@ impl Layout for TableElem {
|
|||
|
||||
// Add lines and backgrounds.
|
||||
for (frame, rows) in layout.fragment.iter_mut().zip(&layout.rows) {
|
||||
if layout.cols.is_empty() || rows.is_empty() {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Render table lines.
|
||||
if let Some(stroke) = &stroke {
|
||||
let thickness = stroke.thickness;
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -0,0 +1,10 @@
|
|||
// Ensure no empty lines before a table that doesn't fit into the first page.
|
||||
|
||||
---
|
||||
#set page(height: 50pt)
|
||||
|
||||
Hello
|
||||
#table(
|
||||
columns: 4,
|
||||
[1], [2], [3], [4]
|
||||
)
|
||||
Loading…
Reference in New Issue