(text)
Split the `text` at newlines (``\\n'') and strip the lines,
    but only return lines with content.
Split the `text` at newlines (``\\n'') and strip the lines,
    but only return lines with content.
Split the text at newlines ( \\ n ) and strip the lines but only return lines with content .
def split_newline(text):
    """
    Split the `text` at newlines (``\\n'') and strip the lines,
    but only return lines with content.
    """
    for line in text.split('\n'):
        line = line.strip()

        if line:
            yield line
def split_newline ( text ) : for line in text . split ( '\n' ) : line = line . strip ( ) if line : yield line