Skip to content
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

CSS formatter removes useful space #2024

Closed
anthonyvdotbe opened this issue Apr 8, 2022 · 2 comments
Closed

CSS formatter removes useful space #2024

anthonyvdotbe opened this issue Apr 8, 2022 · 2 comments

Comments

@anthonyvdotbe
Copy link

Description

In the example below, formatting removes a useful space character: the output is less readable & introduces an asymmetry.

Input

The code looked like this before beautification:

bar::before {
    content: "(" counter(foo) ")";
}

Expected Output

The code should have looked exactly the same after beautification.

Actual Output

After beautification, the space between "(" and counter(foo) is removed (but the space between counter(foo) and ")" isn't, causing an asymmetry):

bar::before {
    content: "("counter(foo) ")";
}

Steps to Reproduce

Format the input.

Environment

OS: Windows

Settings

VS Code 1.66.1 with default settings. Not sure how to extract the settings VS Code uses under the hood. Originally reported as microsoft/vscode#147060

@mhnaeem
Copy link
Contributor

mhnaeem commented Apr 8, 2022

Related to the following, should be fixed in the upcoming release. Maybe you can try reproducing on main branch

Issues:

PRs:

@bitwiseman bitwiseman modified the milestones: v1.14.3, 1.14.x Apr 9, 2022
@bitwiseman
Copy link
Member

Released 1.14.3 today. This is fixed in that version. Thanks @mhnaeem !

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

3 participants