summaryrefslogtreecommitdiff
path: root/tests/typ/repr.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-03-10 10:20:01 +0100
committerLaurenz <laurmaedje@gmail.com>2021-03-10 10:20:01 +0100
commitbbb9ed07ffe8a2a0ea0a232f6cfc52f82f7f7afe (patch)
tree2b106b63e104652b66efc74a0ffa3080a8b0a134 /tests/typ/repr.typ
parentb2b8d37ce03de60582230e03c03efa356b6f31d3 (diff)
Better line spacing calculations ↕
- Only add line spacing between lines. Previously, line spacing was added below every line, making `#box[word]` higher than just `word`. - Compute box height of text as `ascender - descender` so that the full word is contained in the box.
Diffstat (limited to 'tests/typ/repr.typ')
-rw-r--r--tests/typ/repr.typ3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/typ/repr.typ b/tests/typ/repr.typ
index 6eead75e..96eb710e 100644
--- a/tests/typ/repr.typ
+++ b/tests/typ/repr.typ
@@ -32,9 +32,8 @@
{12e1pt} \
{2.5rad} \
{45deg} \
-
// Not in monospace via repr.
-#repr(45deg)
+#repr(45deg) \
---
// Colors.