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

Some rules don't work for scss, less #1691

Closed
borishere opened this issue May 29, 2017 · 1 comment
Closed

Some rules don't work for scss, less #1691

borishere opened this issue May 29, 2017 · 1 comment
Labels

Comments

@borishere
Copy link

Description

The results of beautification are not what I expect.
For example these rules don't work in my scss, less files:

    "end_with_newline": true,
    "preserve_newlines": true

As we can see from the Actual Output:

  • new line is not added to the end (my piece of code is the whole file)
  • new line before .style2 { is not preserved

Input Before Beautification

This is what the code looked like before:

.style {
    position: absolute;
}

.style2 {
    .style3 {
        background-color: inherit;
    }
}

Expected Output

The beautified code should have looked like this:

.style {
    position: absolute;
}

.style2 {
    .style3 {
        background-color: inherit;
    }
}

Actual Output

The beautified code actually looked like this:

.style {
    position: absolute;
}
.style2 {
    .style3 {
        background-color: inherit;
    }
}

Steps to Reproduce

  1. Add code to Atom editor
  2. Run command Atom Beautify: Beautify Editor
  3. This beautified code does not look right!

Debug

Here is a link to the debug.md Gist: https://gist.github.com/borishere/fe9743d2142951cbcea5338c348a6f3a#file-debug-md

@stale
Copy link

stale bot commented Nov 4, 2017

This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant