From 65409a98d90f6862ea9d403d5479123cc5e7accd Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Tue, 29 Apr 2025 11:28:41 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20replace=20CRLF=20with=20LF=20be?= =?UTF-8?q?fore=20parsing=20CSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that we can handle CRLF correctly in the parser this is no longer necessary --- packages/tailwindcss/src/css-parser.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/tailwindcss/src/css-parser.ts b/packages/tailwindcss/src/css-parser.ts index e458ec124..89b06da5c 100644 --- a/packages/tailwindcss/src/css-parser.ts +++ b/packages/tailwindcss/src/css-parser.ts @@ -36,7 +36,6 @@ export function parse(input: string) { // *before* processing do NOT change the length of the string. This // would invalidate the mechanism used to track source locations. if (input[0] === '\uFEFF') input = ' ' + input.slice(1) - input = input.replaceAll('\r\n', ' \n') let ast: AstNode[] = [] let licenseComments: Comment[] = []