add_terminal_newlines

stringtools.add_terminal_newlines(lines)

Adds terminal newlines to lines.

>>> lines = ['first line', 'second line']
>>> stringtools.add_terminal_newlines(lines)
['first line\n', 'second line\n']

Does nothing when line in lines already ends in newline:

>>> lines = ['first line\n', 'second line\n']
>>> stringtools.add_terminal_newlines(lines)
['first line\n', 'second line\n']

Returns newly constructed object of lines type.