updated ignoring newline for "pre", "textarea"