You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the default template for bug reports
The option 'max_preserve_newline' is not working with CSS Beautifier. When the option 'preserve_newlines': true and 'max_preserve_newlines': 2, it is keeping all the newlines instead of 2 only.
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
The code looked like this before beautification:
p {
color: blue;
}
Expected Output
The code should have looked like this after beautification:
p {
color: blue;
}
Actual Output
The code actually looked like this after beautification:
p {
color: blue;
}
Steps to Reproduce
Use these options:
{
'preserve_newlines': true,
'max_preserve_newlines': 2,
}
It will keep all newlines instead of 2 only.
Description
Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Use these options:
{
'preserve_newlines': true,
'max_preserve_newlines': 2,
}
It will keep all newlines instead of 2 only.
Environment
OS: Chrome Browser
Settings
Example:
The text was updated successfully, but these errors were encountered: