Unexpectedly doubles a blank line before a YAML comment (2.1.0 regression) #9130
Labels
lang:yaml
Issues affecting YAML
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 2.1.1
Playground link
Input:
Output:
Expected behavior:
Prettier should preserve the single blank line, not add a second blank line.
I bisected this issue to commit ea84392 YAML: Preserve blank lines in comments (#8356). Cc @fisker.
The text was updated successfully, but these errors were encountered: