Add option to add space between CSS selectors
Author: bibekoliCreated Dec 7, 2020Updated Jun 30, 2026
Labelstype: bugtype: enhancementlanguage: css
Description
This is the default template for feature requests. I don't see any option to set space between the CSS selectors like: No space: a,p,b{} Yes space: a, p, b{} So, it'll be awesome if you add this feature too.
NOTE:
- Do not include screenshots! This library is a text processor, we need text inputs and outputs for debugging and fixing issues.
- Check the list of open issues before filing a new issue.
Input
With this new feature, when I give like this input:
#main,#section, a {
color: blue;
}Expected Output
I'd like to see this output:
/*When the option is true*/
#main, #section, a {
color: blue;
}
/*When the option is false*/
#main,#section,a {
color: blue;
}Environment
OS: Android => Chrome
Source: beautifier/js-beautify