fixed when missing newlines on last line, fixed when tag attribute is missing