Skip to content

Conversation

@fisker
Copy link
Member

@fisker fisker commented May 20, 2020

Fixes #6952

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory)
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/pr-XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@fisker fisker changed the title YAML: Fix ugly comments YAML: Preserve blank lines in comments May 20, 2020
@fisker fisker marked this pull request as ready for review May 20, 2020 08:56
return false;
}

function isPreviousLineEmpty(node, text) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you use isPreviousLineEmpty from common/util?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@thorn0 thorn0 merged commit ea84392 into prettier:master May 21, 2020
@fisker fisker deleted the fix-yaml-comments branch May 21, 2020 16:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YAML: comment in list not format correctly

4 participants