diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-13 13:45:05 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-13 13:45:05 +0200 |
| commit | 68b365b35197dd2f7aca04f7fa9d712f7cee621d (patch) | |
| tree | a92e3c1ea00901c45dadc294fb70a22e2528253d /tests | |
| parent | 8fb225feb4a10a916c239faaa130cf5aae164284 (diff) | |
Fix newline in text in math
Fixes #1948
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/math-text-break.png | bin | 0 -> 900 bytes | |||
| -rw-r--r-- | tests/typ/bugs/math-text-break.typ | 4 | ||||
| -rw-r--r-- | tests/typ/math/content.typ | 10 |
3 files changed, 9 insertions, 5 deletions
diff --git a/tests/ref/bugs/math-text-break.png b/tests/ref/bugs/math-text-break.png Binary files differnew file mode 100644 index 00000000..a9842f25 --- /dev/null +++ b/tests/ref/bugs/math-text-break.png diff --git a/tests/typ/bugs/math-text-break.typ b/tests/typ/bugs/math-text-break.typ new file mode 100644 index 00000000..a8aa1d0a --- /dev/null +++ b/tests/typ/bugs/math-text-break.typ @@ -0,0 +1,4 @@ +// Test text with linebreaks in math. + +--- +$ x := "a\nb\nc\nd\ne" $ diff --git a/tests/typ/math/content.typ b/tests/typ/math/content.typ index 49f39733..e04ebb30 100644 --- a/tests/typ/math/content.typ +++ b/tests/typ/math/content.typ @@ -21,11 +21,11 @@ $#here[f] := #here[Hi there]$. --- // Test boxes without a baseline act as if the baseline is at the base #{ - box(stroke: 0.2pt, $a #box(stroke: 0.2pt, $a$)$) - h(12pt) - box(stroke: 0.2pt, $a #box(stroke: 0.2pt, $g$)$) - h(12pt) - box(stroke: 0.2pt, $g #box(stroke: 0.2pt, $g$)$) + box(stroke: 0.2pt, $a #box(stroke: 0.2pt, $a$)$) + h(12pt) + box(stroke: 0.2pt, $a #box(stroke: 0.2pt, $g$)$) + h(12pt) + box(stroke: 0.2pt, $g #box(stroke: 0.2pt, $g$)$) } --- |
