add linebreaks support to htmlpopup output