* 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>
28 lines
275 B
YAML
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 |