mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 06:09:09 -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
|
@ -1102,9 +1102,9 @@ void MessageComposer::insertTitleText(const QString &title, enumMessageType typ
|
|||
|
||||
void MessageComposer::insertPastedText(QString msg)
|
||||
{
|
||||
msg.replace("\n", "\n<BR/>> ");
|
||||
msg.replace("\n", "\n<BR>> ");
|
||||
|
||||
ui.msgText->setHtml("<HTML><font color=\"blue\"> > " + msg + "</font><br/><br/></HTML>");
|
||||
ui.msgText->setHtml("<HTML><font color=\"blue\"> > " + msg + "</font><br><br></HTML>");
|
||||
|
||||
ui.msgText->setFocus( Qt::OtherFocusReason );
|
||||
|
||||
|
@ -1117,9 +1117,9 @@ void MessageComposer::insertPastedText(QString msg)
|
|||
|
||||
void MessageComposer::insertForwardPastedText(QString msg)
|
||||
{
|
||||
msg.replace("\n", "\n<BR/>> ");
|
||||
msg.replace("\n", "\n<BR>> ");
|
||||
|
||||
ui.msgText->setHtml("<HTML><blockquote [type=cite]><font color=\"blue\">> " + msg + "</font><br/><br/></blockquote></HTML>");
|
||||
ui.msgText->setHtml("<HTML><blockquote [type=cite]><font color=\"blue\">> " + msg + "</font><br><br></blockquote></HTML>");
|
||||
|
||||
ui.msgText->setFocus( Qt::OtherFocusReason );
|
||||
|
||||
|
@ -2132,8 +2132,8 @@ void MessageComposer::addImage()
|
|||
void MessageComposer::Create_New_Image_Tag( const QString urlremoteorlocal )
|
||||
{
|
||||
/*if (image_extension(urlremoteorlocal)) {*/
|
||||
QString subtext = QString("<p><img src=\"%1\" />").arg(urlremoteorlocal);
|
||||
///////////subtext.append("<br/><br/>Description on image.</p>");
|
||||
QString subtext = QString("<p><img src=\"%1\">").arg(urlremoteorlocal);
|
||||
///////////subtext.append("<br><br>Description on image.</p>");
|
||||
QTextDocumentFragment fragment = QTextDocumentFragment::fromHtml(subtext);
|
||||
ui.msgText->textCursor().insertFragment(fragment);
|
||||
//emit statusMessage(QString("Image new :").arg(urlremoteorlocal));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue