start of newline code - broken tag handling