summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-04 12:25:28 +0100
committerGitHub <noreply@github.com>2024-02-04 11:25:28 +0000
commit71ed7795995642ee34e6272c550538897cd11d50 (patch)
tree2ff5ecb9b948cd04a607e44b66ce4d8d096d4c79 /tests
parenta8f764ab484de735b3099870204fa613f4f2a2db (diff)
Fix terms show rule (#3325)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/bugs/1050-terms-indent.pngbin0 -> 22472 bytes
-rw-r--r--tests/ref/layout/terms.pngbin17876 -> 20057 bytes
-rw-r--r--tests/typ/bugs/1050-terms-indent.typ11
-rw-r--r--tests/typ/layout/terms.typ8
4 files changed, 19 insertions, 0 deletions
diff --git a/tests/ref/bugs/1050-terms-indent.png b/tests/ref/bugs/1050-terms-indent.png
new file mode 100644
index 00000000..58a7feae
--- /dev/null
+++ b/tests/ref/bugs/1050-terms-indent.png
Binary files differ
diff --git a/tests/ref/layout/terms.png b/tests/ref/layout/terms.png
index 00531f98..e0cd013a 100644
--- a/tests/ref/layout/terms.png
+++ b/tests/ref/layout/terms.png
Binary files differ
diff --git a/tests/typ/bugs/1050-terms-indent.typ b/tests/typ/bugs/1050-terms-indent.typ
new file mode 100644
index 00000000..82376820
--- /dev/null
+++ b/tests/typ/bugs/1050-terms-indent.typ
@@ -0,0 +1,11 @@
+#set page(width: 200pt)
+#set par(first-line-indent: 0.5cm)
+
+- #lorem(10)
+- #lorem(10)
+
++ #lorem(10)
++ #lorem(10)
+
+/ Term 1: #lorem(10)
+/ Term 2: #lorem(10)
diff --git a/tests/typ/layout/terms.typ b/tests/typ/layout/terms.typ
index fa94ae12..178aa98b 100644
--- a/tests/typ/layout/terms.typ
+++ b/tests/typ/layout/terms.typ
@@ -22,6 +22,8 @@
An important energy source
for vegetarians.
+ And healthy!
+
---
// Test style change.
#set text(8pt)
@@ -31,6 +33,12 @@
/ Second list: #lorem(5)
---
+// Test RTL.
+#set text(8pt, dir: rtl)
+
+/ פרי: דבר טעים, אכיל. ומקור אנרגיה חשוב לצמחונים.
+
+---
// Test grid like show rule.
#show terms: it => table(
columns: 2,