def METHOD_NAME(text):
    lines = text.split('\n')
    # Need to insert back the newline characters between lines, difflib
    # requires this.
    if len(lines) > 0:
        for i in range(len(lines) - 1):
            lines[i] += '\n'
    return lines