Skip to content

Newline at end of updated text #203

@stefan-imp

Description

@stefan-imp

Great tool, thanks!

Function text_ensure_line doesn't add a newline at the end of the text. This is not ideal for e.g. updating configuration files which may need a final newline.

This can be corrected by changing the final line to:

return eol.join(res) + eol

Please consider this. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions