From 75c012a34dd4e718ba8871e1b74068f6e855791e Mon Sep 17 00:00:00 2001 From: hongjr03 Date: Mon, 27 Jan 2025 21:52:00 +0800 Subject: [PATCH] fix: adjust test's order --- tests/suite/text/raw.typ | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/suite/text/raw.typ b/tests/suite/text/raw.typ index 4150afb3d..0164d59fe 100644 --- a/tests/suite/text/raw.typ +++ b/tests/suite/text/raw.typ @@ -676,6 +676,19 @@ a b c -------------------- `code` ``` +--- 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" +``` + --- raw-theme-set-to-auto --- ```typ #let hi = "Hello World" @@ -704,17 +717,4 @@ a b c -------------------- // syntax highlighting. // // 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 +`endless \ No newline at end of file