-
Notifications
You must be signed in to change notification settings - Fork 453
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
Support newline-between-rules for CSS #211
Comments
+1 Also "preserve_newlines" does not seem to be respected for LESS files. |
This is a duplicate of issue #180 The bug is due to a difference in default values for the node-library compared to the web tool for prettydiff. |
CSS is handled by js-beautify and LESS and SASS is handled by Prettydiff. |
@Glavin001 Correct, I do not use LESS/SASS. |
@Glavin001 I just checked and prettydiff correctly handles newlines in less when the 'preserve' option is set to 'all' or 'css'. In my beautify settings I have 'preserve_newlines' set to true but this doesnt seem to make it through to prettydiff for less files. |
@sebastiankade you are correct, currently those options do not get passed to prettydiff. See https://github.com/Glavin001/atom-beautify/blob/master/lib/langs/css-prettydiff-beautify.coffee#L4-L10 @langdonx this may be an issue with js-beautify itself. Those options are passed directly to js-beautify, so anything you can put into your |
Fixed in #245. |
It exists as a checkbox on the settings screen, and I've set it to true in my
.jsbeautifyrc
file, but neither seem to have any effect.js-beautify supports the feature through
-N
or--newline-between-rules
.Side note:
-L
or--selector-separator-newline
also seem to not be supported, but appear to be the default anyway.The text was updated successfully, but these errors were encountered: