+
Skip to content

Conversation

unvalley
Copy link
Member

@unvalley unvalley commented Jul 22, 2025

Summary

Closes #6767

There was a bug where fixing classNames (tailwindcss) left a space at the start or end if there was whitespace there before. This was due to how template literals were handled. This PR fixes it by improving the whitespace handling.

Test Plan

Added snapshot tests.

Docs

Added comments what the code wants to do.

Copy link

changeset-bot bot commented Jul 22, 2025

🦋 Changeset detected

Latest commit: ed403ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Jul 22, 2025
Copy link

codspeed-hq bot commented Jul 22, 2025

CodSpeed Performance Report

Merging #6979 will not alter performance

Comparing unvalley:tailwind-css-format-space (ed403ef) with main (a71f2f2)1

Summary

✅ 115 untouched benchmarks

Footnotes

  1. No successful run was found on main (cf28878) during the generation of this report, so a71f2f2 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@unvalley unvalley marked this pull request as ready for review July 23, 2025 10:55
@unvalley unvalley requested review from a team July 23, 2025 10:56
@ematipico ematipico merged commit 29cb6da into biomejs:main Jul 24, 2025
29 checks passed
@github-actions github-actions bot mentioned this pull request Jul 24, 2025
@unvalley unvalley deleted the tailwind-css-format-space branch July 24, 2025 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Linter Area: linter L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tailwindcss not clean up whitespace when whitespace position on the first or last string

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载