From e594c866fcf02ea7fd16db56fb1679a0faa14b7f Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 5 May 2025 17:14:40 +0200 Subject: [PATCH] replace `\r\n` with `\n` --- crates/oxide/src/extractor/pre_processors/haml.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/oxide/src/extractor/pre_processors/haml.rs b/crates/oxide/src/extractor/pre_processors/haml.rs index a32c12950977..810bbb2c35ed 100644 --- a/crates/oxide/src/extractor/pre_processors/haml.rs +++ b/crates/oxide/src/extractor/pre_processors/haml.rs @@ -425,7 +425,7 @@ mod tests { let actual = Haml::extract_annotated(include_bytes!("./test-fixtures/haml/src-17051.haml")); let expected = include_str!("./test-fixtures/haml/dst-17051.haml"); - assert_eq!(actual, expected); + assert_eq!(actual.replace("\r\n", "\n"), expected.replace("\r\n", "\n")); } // https://github.com/tailwindlabs/tailwindcss/issues/17813 @@ -434,7 +434,7 @@ mod tests { let actual = Haml::extract_annotated(include_bytes!("./test-fixtures/haml/src-17813.haml")); let expected = include_str!("./test-fixtures/haml/dst-17813.haml"); - assert_eq!(actual, expected); + assert_eq!(actual.replace("\r\n", "\n"), expected.replace("\r\n", "\n")); } #[test]