summaryrefslogtreecommitdiff
path: root/tests/typ/math
diff options
context:
space:
mode:
authorAlex Saveau <saveau.alexandre@gmail.com>2023-04-13 01:42:03 -0700
committerGitHub <noreply@github.com>2023-04-13 10:42:03 +0200
commit03d2ec9f813cb18c350de78614fcbc269b2dfc96 (patch)
tree5f3b42b20b9cb454dd0a1e1adb33780aad657439 /tests/typ/math
parenta066a3d2831bc8e643349a54880671e9c7d11e0f (diff)
Strip trailing line breaks in math equations (#750)
Diffstat (limited to 'tests/typ/math')
-rw-r--r--tests/typ/math/multiline.typ21
1 files changed, 21 insertions, 0 deletions
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.