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

Js-beautify breaking selectors in less code. #410

Closed
noducks opened this issue Feb 15, 2014 · 0 comments
Closed

Js-beautify breaking selectors in less code. #410

noducks opened this issue Feb 15, 2014 · 0 comments

Comments

@noducks
Copy link

noducks commented Feb 15, 2014

Has there been any movement on this? Would be great to see it working. It is currently the only issue breaking my less files.

.rule {
  &:hover {
  }
}

turns into

.rule {
  &: hover {
  }
}
nponiros added a commit to get-the-service/js-beautify that referenced this issue Mar 18, 2014
JavaScript:
css beautifier checks if the colon it encounters
is part of a property: value or part of a nested pseudo-class/
parent reference. In case of nested pseudo-class or parent reference
it does not output a space after the colon.

Added general test for parent reference, nested pseudo-class and
SASS import statement. Added special test for issues beautifier#410 and beautifier#414.

Python:
Best effort to support parent reference and nested pseudo-class.
When it encounters a colon it checks if the colon is part
of a property: value or part of parent reference/nested pseudo-class.
In case of parent reference/nested pseudo-class it does not output
a space after the colon.

Added tests for reference/nested pseudo-class. Add tests for
issues beautifier#410, beautifier#414

Fixes issues beautifier#410 and beautifier#414
Related to issue beautifier#356
nponiros added a commit to get-the-service/js-beautify that referenced this issue Mar 18, 2014
JavaScript:
css beautifier checks if the colon it encounters
is part of a property: value or part of a nested pseudo-class/
parent reference. In case of nested pseudo-class or parent reference
it does not output a space after the colon.

Added general test for parent reference, nested pseudo-class and
SASS import statement. Added special test for issues beautifier#410 and beautifier#414.

Python:
Best effort to support parent reference and nested pseudo-class.
When it encounters a colon it checks if the colon is part
of a property: value or part of parent reference/nested pseudo-class.
In case of parent reference/nested pseudo-class it does not output
a space after the colon.

Added tests for reference/nested pseudo-class. Add tests for
issues beautifier#410, beautifier#414

Fixes issues beautifier#410 and beautifier#414
Related to issue beautifier#356
nponiros added a commit to get-the-service/js-beautify that referenced this issue Mar 18, 2014
JavaScript:
css beautifier checks if the colon it encounters
is part of a property: value or part of a nested pseudo-class/
parent reference. In case of nested pseudo-class or parent reference
it does not output a space after the colon.

Added general test for parent reference, nested pseudo-class and
SASS import statement. Added special test for issues beautifier#410 and beautifier#414.

Python:
Best effort to support parent reference and nested pseudo-class.
When it encounters a colon it checks if the colon is part
of a property: value or part of parent reference/nested pseudo-class.
In case of parent reference/nested pseudo-class it does not output
a space after the colon.

Added tests for reference/nested pseudo-class. Add tests for
issues beautifier#410, beautifier#414

Fixes issues beautifier#410 and beautifier#414
Related to issue beautifier#356
@bitwiseman bitwiseman added this to the v1.5.3 milestone Oct 1, 2014
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