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>