Skip to content

ASP.NET Razor formatter removes duplicate spaces in a string value #8333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
RomanKoff opened this issue May 30, 2025 · 0 comments
Open

ASP.NET Razor formatter removes duplicate spaces in a string value #8333

RomanKoff opened this issue May 30, 2025 · 0 comments

Comments

@RomanKoff
Copy link

RomanKoff commented May 30, 2025

Type: Bug

Issue Description

If you specify multiple spaces in a row in the value of a string variable and apply code formatting, the double spaces will be replaced with a single space. This is unacceptable.

Before:
var s1 = " test test ";

After formating:
var s1 = " test test ";

2025-05-30.13-54-42.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants