stripLines

emlib.textlib.stripLines(text)[source]

Like str.strip but operates on lines as a whole.

Removes empty lines at the beginning or end of text, without touching lines in between.

Return type:

str