Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newline at end of updated text #203

Open
stefan-imp opened this issue Jul 6, 2016 · 0 comments
Open

Newline at end of updated text #203

stefan-imp opened this issue Jul 6, 2016 · 0 comments

Comments

@stefan-imp
Copy link

stefan-imp commented Jul 6, 2016

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant