From 578ba640f3666b5dc309ec0a03d6f6d5f2ae14a2 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 27 Nov 2024 11:16:25 +0000 Subject: Fix weak spacing being ignored unconditionally in `math.lr` (#5477) --- tests/ref/math-lr-weak-spacing.png | Bin 647 -> 1171 bytes tests/suite/math/delimited.typ | 1 + 2 files changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/ref/math-lr-weak-spacing.png b/tests/ref/math-lr-weak-spacing.png index 871aaa2e..2478ca2a 100644 Binary files a/tests/ref/math-lr-weak-spacing.png and b/tests/ref/math-lr-weak-spacing.png differ diff --git a/tests/suite/math/delimited.typ b/tests/suite/math/delimited.typ index fc00333d..22674050 100644 --- a/tests/suite/math/delimited.typ +++ b/tests/suite/math/delimited.typ @@ -87,6 +87,7 @@ $ 1/(2 y (x) (2(3)) $ // Test ignoring weak spacing immediately after the opening // and immediately before the closing. $ [#h(1em, weak: true)A(dif x, f(x) dif x)sum#h(1em, weak: true)] $ +$ lr(\[#h(1em, weak: true)lr(A dif x, f(x) dif x\))sum#h(1em, weak:true)a) $ --- math-lr-nested --- // Test nested lr calls. -- cgit v1.2.3