fixed html newline parsing