From 8d200bd989b2893d2eaa03ea9f7fa7863f313547 Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Tue, 24 Apr 2012 17:29:01 +0100 Subject: Use the right HTML for linebreaks Resolves: #1102 diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp index b7ac05f..42fe0f5 100644 --- a/Swift/QtUI/QtChatWindow.cpp +++ b/Swift/QtUI/QtChatWindow.cpp @@ -538,7 +538,7 @@ std::string QtChatWindow::addFileTransfer(const std::string& senderName, bool se QString formattedFileSize = P2QSTRING(formatSize(sizeInBytes)); if (senderIsSelf) { // outgoing - htmlString = tr("Send file") + ": " + P2QSTRING(filename) + " ( " + formattedFileSize + ")
" + + htmlString = tr("Send file") + ": " + P2QSTRING(filename) + " ( " + formattedFileSize + ")
" + "
" + buildChatWindowButton(tr("Cancel"), ButtonFileTransferCancel, ft_id) + buildChatWindowButton(tr("Set Description"), ButtonFileTransferSetDescription, ft_id) + @@ -546,7 +546,7 @@ std::string QtChatWindow::addFileTransfer(const std::string& senderName, bool se "
"; } else { // incoming - htmlString = "Receiving file: " + P2QSTRING(filename) + " ( " + formattedFileSize + ")
" + + htmlString = "Receiving file: " + P2QSTRING(filename) + " ( " + formattedFileSize + ")
" + "
" + buildChatWindowButton(tr("Cancel"), ButtonFileTransferCancel, ft_id) + buildChatWindowButton(tr("Accept"), ButtonFileTransferAcceptRequest, ft_id, P2QSTRING(filename)) + @@ -858,12 +858,12 @@ void QtChatWindow::addMUCInvitation(const std::string& senderName, const JID& ji onAllMessagesRead(); } - QString htmlString = QObject::tr("You've been invited to enter the %1 room.").arg(P2QSTRING(jid.toString())) + "
"; + QString htmlString = QObject::tr("You've been invited to enter the %1 room.").arg(P2QSTRING(jid.toString())) + "
"; if (!reason.empty()) { - htmlString += QObject::tr("Reason: %1").arg(P2QSTRING(reason)) + "
"; + htmlString += QObject::tr("Reason: %1").arg(P2QSTRING(reason)) + "
"; } if (!direct) { - htmlString += QObject::tr("This person may not have really sent this invitation!") + "
"; + htmlString += QObject::tr("This person may not have really sent this invitation!") + "
"; } QString id = QString(ButtonMUCInvite + "%1").arg(P2QSTRING(boost::lexical_cast(idCounter_++))); -- cgit v0.10.2-6-g49f6