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

stylefmt adds a newline at the beginning of the file before variable declarations in scss #87

Closed
cbrwizard opened this issue Apr 6, 2016 · 1 comment

Comments

@cbrwizard
Copy link

Hey, I found an issue with stylefmt default rules. It adds a newline at the beginning of the file when there is a variable declaration on the first line:

$border: 1px solid #fff;

.border {
  border: $border;
}

I run stylefmt example.scss and that file ^ gets transformed into:

// here there actually is a newline but github's markdown does not display it
$border: 1px solid #fff;

.border {
  border: $border;
}

In my opinion, it's not intended and a newline shouldn't be added in the beginning of the file.

@matype matype mentioned this issue Jun 9, 2016
@matype matype closed this as completed in a590ad6 Jun 9, 2016
matype pushed a commit that referenced this issue Jun 9, 2016
@cbrwizard
Copy link
Author

Thanks for fixing this, @morishitter!

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

2 participants