change hardbreaks attribute to linebreaks