YAML: Why --- changes to ... #4920
Labels
lang:yaml
Issues affecting YAML
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
status:has pr
Issues with an accompanying pull request. These issues will probably be fixed soon!
type:bug
Issues identifying ugly output, or a defect in the program
Milestone
I'm not sure if this is a bug or intended behavior. I noticed that
---
changes to...
, and for examplekubectl
(kubernetes tool) cannot parse my yaml files because of this.I tried to find what is the difference, found this page, but after reading the description I still have no clue why
...
in the example below is better than---
.Honestly, I have never seen
...
being used in YAML files until today. I can easily imagine that it's a problem inkubectl
, that it should support...
, but if there is no difference, can we make prettier prefer---
over...
?Prettier 1.14.0
Playground link
Input:
Output:
Expected behavior:
The text was updated successfully, but these errors were encountered: