From 03d2ec9f813cb18c350de78614fcbc269b2dfc96 Mon Sep 17 00:00:00 2001 From: Alex Saveau Date: Thu, 13 Apr 2023 01:42:03 -0700 Subject: Strip trailing line breaks in math equations (#750) --- tests/ref/math/multiline.png | Bin 8165 -> 13474 bytes tests/typ/math/multiline.typ | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+) (limited to 'tests') diff --git a/tests/ref/math/multiline.png b/tests/ref/math/multiline.png index 94ef1196..50f611b2 100644 Binary files a/tests/ref/math/multiline.png and b/tests/ref/math/multiline.png differ diff --git a/tests/typ/math/multiline.typ b/tests/typ/math/multiline.typ index 1d268fae..4f42ea63 100644 --- a/tests/typ/math/multiline.typ +++ b/tests/typ/math/multiline.typ @@ -33,3 +33,24 @@ $ "abc" &= c \ --- // Test multiline subscript. $ sum_(n in NN \ n <= 5) n = (5(5+1))/2 = 15 $ + +--- +// Test no trailing line break. +$ +"abc" &= c +$ +No trailing line break. + +--- +// Test single trailing line break. +$ +"abc" &= c \ +$ +One trailing line break. + +--- +// Test multiple trailing line breaks. +$ +"abc" &= c \ \ \ +$ +Multiple trailing line breaks. -- cgit v1.2.3