fixed extra newline insetion in lits with formatted text