awslabs/aws-cloudformation-template-formatter

[Request] Ignore blank line at end of file

bryanburke opened this issue · 1 comments

Many code editors such as VS Code are configurable to append a single blank line to the end of a file when saving. When using that setting, the act of saving a template and thus appending that empty line causes cfn-format to see the file as improperly formatted even if every other line follows the formatting rules. Would it be possible for cfn-format to ignore the trailing blank line if it exists?

Fixed in 7a47d74