linesStrip

emlib.textlib.linesStrip(lines)[source]

Remove empty lines from the top and bottom

Parameters:

lines (list[str]) – lines already split

Return type:

list[str]

Returns:

a list of lines without any empty lines at the beginning and at the end