[#SIGAPP-7: removed extra end of lines, added test, replaces <P> tag for <BR>]