From f0a4e10a8e2ed38101c9b453e2460a2236c17b3f Mon Sep 17 00:00:00 2001 From: hongjr03 Date: Mon, 27 Jan 2025 21:43:22 +0800 Subject: [PATCH] add test about cjk-latin-spacing in raw --- tests/suite/text/raw.typ | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ index 1ba216302..4150afb3d 100644 --- a/tests/suite/text/raw.typ +++ b/tests/suite/text/raw.typ @@ -705,3 +705,16 @@ a b c -------------------- // // Error: 1-2:1 unclosed raw text `endless + +--- issue-5760-disable-cjk-latin-spacing-in-raw --- +// Test that cjk-latin-spacing is disabled in raw blocks. + +#set text(cjk-latin-spacing: auto) // cjk-latin-spacing is enabled but should be disabled in raw blocks by default +```typ +#let hi = "你好world" +``` + +#show raw: set text(cjk-latin-spacing: auto) // This would enable cjk-latin-spacing +```typ +#let hi = "你好world" +``` \ No newline at end of file