summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/ChatSnippet.h')
-rw-r--r--Swift/QtUI/ChatSnippet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/ChatSnippet.h b/Swift/QtUI/ChatSnippet.h
index 0d864c1..523a96c 100644
--- a/Swift/QtUI/ChatSnippet.h
+++ b/Swift/QtUI/ChatSnippet.h
@@ -28,18 +28,19 @@ namespace Swift {
}
static QString escape(const QString& original) {
QString result(original);
result.replace("%message%", "%message%");
result.replace("%sender%", "%sender%");
result.replace("%time%", "%%time%");
result.replace("%shortTime%", "%%shortTime%");
result.replace("%userIconPath%", "%userIconPath%");
+ result.replace(" ", "  ");
return result;
}
static QString timeToEscapedString(const QDateTime& time);
protected:
void setContinuationFallbackSnippet(boost::shared_ptr<ChatSnippet> continuationFallback) {
continuationFallback_ = continuationFallback;
}