fixed link passed issue due to usin self-closign links (Patch from Asamk )

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4631 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-10-05 16:57:33 +00:00
parent 15758578e0
commit 6addc80e99
9 changed files with 18 additions and 18 deletions
retroshare-gui/src/gui/common

View file

@ -29,14 +29,14 @@
#include "html.h"
/** Wraps a string in "<p>" tags, converts "\n" to "<br/>" and converts "\n\n"
/** Wraps a string in "<p>" tags, converts "\n" to "<br>" and converts "\n\n"
* to a new paragraph. */
QString
p(QString str)
{
str = "<p>" + str + "</p>";
str.replace("\n\n", "</p><p>");
str.replace("\n", "<br/>");
str.replace("\n", "<br>");
return str;
}