sublimetext-codeformatter icon indicating copy to clipboard operation
sublimetext-codeformatter copied to clipboard

SCSS/SASS doesn't preserve existing linebreaks in nested classes

Open ericjames opened this issue 9 years ago • 3 comments

The preserve line breaks options are not working for SCSS/SASS.

    "codeformatter_scss_options":
    {
        "syntaxes": "scss, sass", // Indentation size
        "format_on_save": false, // Format on save
        "indent_size": 4, // Indentation size
        "indent_char": " ", // Indentation character
        "indent_with_tabs": false, // Indent with one tab (overrides indent_size and indent_char options)
        "selector_separator_newline": true, // Add new lines after selector separators
        "end_with_newline": true, // Add new line of end in file
        "newline_between_rules": true, // Add new line between rules
        "preserve_newlines": true, // whether existing line breaks should be preserved,
        "max_preserve_newlines": 1, // maximum number of line breaks to be preserved in one chunk
        "keep_blank_lines": true, // If true, preserve one blank where blank(s) are encountered.
    },

It is clumping everything together in nested classes.

ericjames avatar Oct 19 '16 16:10 ericjames

+1

wolasss avatar Nov 17 '16 13:11 wolasss

+1

minikN avatar Jan 27 '18 20:01 minikN

I think JSBeautify fixed this so how do we get it updated here? https://github.com/beautify-web/js-beautify/issues/1258

ericjames avatar Feb 26 '21 16:02 ericjames