def eliminate_duplicated_lines(txt):
    """
    If there are duplicated lines in the report, this function can be used to
    correct this.
    :param txt: str
    :return: list of lines with repetition.
    """
    assert type(txt)==str
    rep_lines = txt.split('\n')
    res = [rep_lines[0]]
    for ln in rep_lines:
        if ln == '':
            res.append(ln)
        elif ln != res[-1]:
            res.append(ln)
    return res