parent
6720d8c301
commit
c5cdbaeaf8
@ -175,6 +175,10 @@ impl Layout for TableElem {
|
|||||||
|
|
||||||
// Add lines and backgrounds.
|
// Add lines and backgrounds.
|
||||||
for (frame, rows) in layout.fragment.iter_mut().zip(&layout.rows) {
|
for (frame, rows) in layout.fragment.iter_mut().zip(&layout.rows) {
|
||||||
|
if layout.cols.is_empty() || rows.is_empty() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Render table lines.
|
// Render table lines.
|
||||||
if let Some(stroke) = &stroke {
|
if let Some(stroke) = &stroke {
|
||||||
let thickness = stroke.thickness;
|
let thickness = stroke.thickness;
|
||||||
|
BIN
tests/ref/bugs/table-lines.png
Normal file
BIN
tests/ref/bugs/table-lines.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
10
tests/typ/bugs/table-lines.typ
Normal file
10
tests/typ/bugs/table-lines.typ
Normal file
@ -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…
x
Reference in New Issue
Block a user