From 17cef576e922a62c3801d2980209a9a197563a6a Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sat, 4 May 2013 18:25:34 +0400 Subject: [PATCH] PluginInstallerPlugin, EmoticonsPackPlugin. fix new line in description --- emoticons_pack/emoticons_pack.py | 2 +- plugin_installer/plugin_installer.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/emoticons_pack/emoticons_pack.py b/emoticons_pack/emoticons_pack.py index 9bbd56f..94d0687 100644 --- a/emoticons_pack/emoticons_pack.py +++ b/emoticons_pack/emoticons_pack.py @@ -184,7 +184,7 @@ class EmoticonsPackPlugin(GajimPlugin): desc = '' + \ desc + ' ' desc = desc.replace('preview.image', ('file:' + os.path.join( - self.tmp_dir, name, 'preview.png'))) + self.tmp_dir, name, 'preview.png'))).replace('\n', '
') self.emoticons_description_textview.tv.display_html( desc, self.emoticons_description_textview) self.emoticons_description_textview.tv.set_property( diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index c6be6b5..cf1962a 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -374,6 +374,7 @@ class PluginInstaller(GajimPlugin): if not desc.startswith('' + \ desc + ' ' + desc = desc.replace('\n', '
') self.plugin_description_textview.tv.display_html( desc, self.plugin_description_textview) self.plugin_description_textview.tv.set_property('sensitive', True)