Skip to content

fix(less): remove CRs from inline comments#5334

Merged
ikatyang merged 1 commit intoprettier:masterfrom
ikatyang:fix/less/crlf-inline-comment
Nov 4, 2018
Merged

fix(less): remove CRs from inline comments#5334
ikatyang merged 1 commit intoprettier:masterfrom
ikatyang:fix/less/crlf-inline-comment

Conversation

@ikatyang
Copy link
Copy Markdown
Member

@ikatyang ikatyang commented Nov 3, 2018

Fixes #5315

The issue is that less parser somehow included CRs in comment.raws.content, but it was hidden by the wrong trailing space elimination previously, which was fixed by #5165.

  • I’ve added tests to confirm my change works.
    We already have such tests but it's not reproducible in AppVeyor since they use LF (core.autocrlf=input).
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • I’ve read the contributing guidelines.

@ikatyang ikatyang added this to the 1.15 milestone Nov 4, 2018
@ikatyang ikatyang merged commit 0878a6a into prettier:master Nov 4, 2018
@ikatyang ikatyang deleted the fix/less/crlf-inline-comment branch November 4, 2018 03:36
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Feb 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1.15.0-dev LESS formatting bug

2 participants