summaryrefslogtreecommitdiff
path: root/tests/typ/text
diff options
context:
space:
mode:
authorbluebear94 <uruwi@protonmail.com>2023-10-03 09:02:27 -0400
committerGitHub <noreply@github.com>2023-10-03 15:02:27 +0200
commitce658db2f39f8472c3525a18ed1cfead23781fbb (patch)
treefc49d6bbc94421ac8be0baaca754c6c5ba626316 /tests/typ/text
parentcf9bde3245817e068c8253070e7a94dcc05369fb (diff)
ShapedText::push_hyphen: Use self.base for default hyphen range (#2299)
In the unlikely chance that we hyphenate after an empty line, we set the glyph range to self.base..self.base so that subtracting Fixes #2283.
Diffstat (limited to 'tests/typ/text')
-rw-r--r--tests/typ/text/shaping.typ6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/typ/text/shaping.typ b/tests/typ/text/shaping.typ
index 3a8d5411..c794a105 100644
--- a/tests/typ/text/shaping.typ
+++ b/tests/typ/text/shaping.typ
@@ -26,3 +26,9 @@ ABCअपार्टमेंट
// doesn't exist in shaping output.
#set text(dir: rtl, font: "Noto Serif Hebrew")
\ ט
+
+---
+// Test that #2283 is fixed.
+#set text(font: "test", lang: "de", hyphenate: true, fallback: false)
+#set par(linebreaks: "simple")
+- ensure