mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-12 16:43:17 -04:00
fixed link passed issue due to usin self-closign links (Patch from Asamk #3418941)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4631 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
15758578e0
commit
6addc80e99
9 changed files with 18 additions and 18 deletions
retroshare-gui/src/gui/common
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue