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!
Great tool, thanks!
Function
text_ensure_linedoesn'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:
Please consider this. Thanks!