From e7652b7a71aa67ad755aea7099dc5304ed26e769 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Tue, 29 Apr 2025 11:25:26 -0400 Subject: [PATCH] Check for CRLF when scanning consecutive whitespace --- packages/tailwindcss/src/css-parser.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/tailwindcss/src/css-parser.ts b/packages/tailwindcss/src/css-parser.ts index 69eb1fca0..e98f53820 100644 --- a/packages/tailwindcss/src/css-parser.ts +++ b/packages/tailwindcss/src/css-parser.ts @@ -191,7 +191,12 @@ export function parse(input: string) { else if ( (currentChar === SPACE || currentChar === LINE_BREAK || currentChar === TAB) && (peekChar = input.charCodeAt(i + 1)) && - (peekChar === SPACE || peekChar === LINE_BREAK || peekChar === TAB) + (peekChar === SPACE || + peekChar === LINE_BREAK || + peekChar === TAB || + (peekChar === CARRIAGE_RETURN && + (peekChar = input.charCodeAt(i + 2)) && + peekChar == LINE_BREAK)) ) { continue }