[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:19:05 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=dcbfd18

The following commit has been merged in the master branch:
commit dcbfd18367a3862fd620b16ba6a6a31d398801fa
Author: Florian Reinhard <florian.reinhard at googlemail.com>
Date:   Tue Mar 15 22:54:07 2011 +0100

    Replace tabs and spaces by   so the html renders them.
    
    REVIEW:100867
---
 lib/adium-theme-message-info.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/adium-theme-message-info.cpp b/lib/adium-theme-message-info.cpp
index 60e379b..71597e3 100644
--- a/lib/adium-theme-message-info.cpp
+++ b/lib/adium-theme-message-info.cpp
@@ -65,7 +65,10 @@ AdiumThemeMessageInfo::MessageType AdiumThemeMessageInfo::type() const
 QString AdiumThemeMessageInfo::message() const
 {
     QString htmlMessage= Qt::escape(d->message);
+    htmlMessage.replace("
 ", "<br/> "); //keep leading whitespaces
     htmlMessage.replace('
', "<br/>");
+    htmlMessage.replace('	', "    "); // replace tabs by 4 spaces
+    htmlMessage.replace("  ", "  "); // keep multiple whitespaces
     htmlMessage.replace('\', "\\"); //replace a single backslash with two backslashes.
 
     return htmlMessage;

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list