From 622cef8e0052532e9b71f7a2484e6637095b9b79 Mon Sep 17 00:00:00 2001 From: bluebear94 Date: Sat, 24 Jun 2023 08:26:06 -0400 Subject: layout::par::collect: Treat linebreak element as whitespace (#1542) Fixes #1540. --- tests/ref/bugs/smartquotes-on-newline.png | Bin 0 -> 1625 bytes tests/typ/bugs/smartquotes-on-newline.typ | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 tests/ref/bugs/smartquotes-on-newline.png create mode 100644 tests/typ/bugs/smartquotes-on-newline.typ (limited to 'tests') diff --git a/tests/ref/bugs/smartquotes-on-newline.png b/tests/ref/bugs/smartquotes-on-newline.png new file mode 100644 index 00000000..fdf4623a Binary files /dev/null and b/tests/ref/bugs/smartquotes-on-newline.png differ diff --git a/tests/typ/bugs/smartquotes-on-newline.typ b/tests/typ/bugs/smartquotes-on-newline.typ new file mode 100644 index 00000000..3180350e --- /dev/null +++ b/tests/typ/bugs/smartquotes-on-newline.typ @@ -0,0 +1,7 @@ +// Test that smart quotes are inferred correctly across newlines. + +--- +"test"#linebreak()"test" + +"test"\ +"test" -- cgit v1.2.3