From 5594868f8b7a3ca5155804653fc2f2d2fb84a48e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 25 Sep 2021 23:35:27 +0200 Subject: Prevent paragraph from overflowing due to trailing linebreak --- tests/ref/layout/grid-5.png | Bin 0 -> 1427 bytes tests/typ/layout/grid-5.typ | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/ref/layout/grid-5.png create mode 100644 tests/typ/layout/grid-5.typ (limited to 'tests') diff --git a/tests/ref/layout/grid-5.png b/tests/ref/layout/grid-5.png new file mode 100644 index 00000000..a43408f8 Binary files /dev/null and b/tests/ref/layout/grid-5.png differ diff --git a/tests/typ/layout/grid-5.typ b/tests/typ/layout/grid-5.typ new file mode 100644 index 00000000..cd1c8dc9 --- /dev/null +++ b/tests/typ/layout/grid-5.typ @@ -0,0 +1,11 @@ + +--- +// Test that trailing linebreak doesn't overflow the region. +#page(height: 2cm) +#grid[ + Hello \ + Hello \ + Hello \ + + World +] -- cgit v1.2.3