[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:23:46 UTC 2016


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

The following commit has been merged in the master branch:
commit 3d37768b4e8ed152947d23518a2af2137dfdc9df
Author: Andrea Scarpino <andrea at archlinux.org>
Date:   Fri Apr 5 20:03:47 2013 +0200

    Latex filter: display the latex formula on click
---
 filters/latex/latex-filter.cpp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/filters/latex/latex-filter.cpp b/filters/latex/latex-filter.cpp
index 49a7db0..8f31faa 100644
--- a/filters/latex/latex-filter.cpp
+++ b/filters/latex/latex-filter.cpp
@@ -65,8 +65,10 @@ void LatexFilter::filterMessage(KTp::Message &message, const KTp::MessageContext
 
         QString image(QLatin1Literal("<img src=\"data:image/png;base64,") %
         handleLatex(formula) %
-        QLatin1Literal("\" style=\"max-width:100%;margin-top:3px\" alt=\"") %
-        QLatin1Literal("\" />"));
+        QLatin1Literal("\" style=\"max-width:100%;margin-top:3px\"") %
+        QLatin1Literal("alt=\"") %
+        formula %
+        QLatin1Literal("\" isEmotion=\"true\"/>"));
 
         int length = rg.matchedLength();
         messageText.replace(pos, length, image);

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list