Files
test-repo/tests/yaml/comment/sequence-2.yml
T
Sosuke Suzukiandfisker 5f9bb2590b YAML: Fix printing doubles a blank line before a comment (#9143)
* Print hardline for endComments only when under mappingValue

* Add changelog

* Fix from linter

* Update tests

* Use shouldPrintEndCommentsWithAlign

* Add tests

* Add test

* Fix format

* Update test

* Test map too

* Update tests

* `shouldPrintEndCommentsWithAlign` -> `shouldPrintEndComments`

Co-authored-by: fisker <lionkay@gmail.com>
2020-09-07 14:10:05 +03:00

28 lines
275 B
YAML

- before
# before.comment
- after
# after.comment
- before-after
# before-after.comment
- none:
# none.comment
- before(2 line)
# before.comment
- after(2 line)
# after.comment
- before-after(2 line)
# before-after.comment
- none(2)
# none.comment