Fixed inconsistencies when inserted on a newline marker.