From 507efc3a1c14e8487705c7424d605a1663d3fe6e Mon Sep 17 00:00:00 2001 From: MALO <57839069+MDLC01@users.noreply.github.com> Date: Mon, 10 Jul 2023 18:23:14 +0200 Subject: Do not take empty lines into account when computing `raw` block dedent (#1676) --- tests/typ/text/raw.typ | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/typ') diff --git a/tests/typ/text/raw.typ b/tests/typ/text/raw.typ index 8cf5ee7e..525988ec 100644 --- a/tests/typ/text/raw.typ +++ b/tests/typ/text/raw.typ @@ -4,6 +4,10 @@ // No extra space. `A``B` +--- +// Empty raw block. +Empty raw block:``. + --- // Typst syntax inside. ```typ #let x = 1``` \ @@ -48,6 +52,22 @@ The keyword ```rust let```. C ``` +--- +// Do not take empty lines into account when computing dedent. +``` + A + + B +``` + +--- +// Take last line into account when computing dedent. +``` + A + + B + ``` + --- // Text show rule #show raw: set text(font: "Roboto") -- cgit v1.2.3