Skip to content

Strip extra trailing new lines #13

@jayvdb

Description

@jayvdb

In #4, we kept the trailing blank line, which is good ..

but, it would be nice if after all operations, before the file is written, a final modification is made to ensure there is only one single trailing line feed.
i.e. no blank lines.

Otherwise, we need to remove trailing blank lines like https://github.com/moremoban/setupmobans/blob/78bcfbc/templates/gitignore.jj2#L99

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions