diff options
author | Denis Fomin <fominde@gmail.com> | 2013-05-04 18:25:34 +0400 |
---|---|---|
committer | Denis Fomin <fominde@gmail.com> | 2013-05-04 18:25:34 +0400 |
commit | 16f257c502add6b2718d55ffdf9af8fec701879a (patch) | |
tree | ec1814dc302a51f027068ccd8a231cec6adc94ac | |
parent | 3d783beb2320eada860a53da8e384ba261251ebc (diff) |
PluginInstallerPlugin, EmoticonsPackPlugin. fix new line in description
-rw-r--r-- | emoticons_pack/emoticons_pack.py | 2 | ||||
-rw-r--r-- | plugin_installer/plugin_installer.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/emoticons_pack/emoticons_pack.py b/emoticons_pack/emoticons_pack.py index 4e7e04d..52f32c3 100644 --- a/emoticons_pack/emoticons_pack.py +++ b/emoticons_pack/emoticons_pack.py @@ -184,7 +184,7 @@ class EmoticonsPackPlugin(GajimPlugin): desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \ desc + ' </body>' desc = desc.replace('preview.image', ('file:' + os.path.join( - self.tmp_dir, name, 'preview.png'))) + self.tmp_dir, name, 'preview.png'))).replace('\n', '<br/>') self.emoticons_description_textview.tv.display_html( desc, self.emoticons_description_textview) self.emoticons_description_textview.tv.set_property('sensitive', True) diff --git a/plugin_installer/plugin_installer.py b/plugin_installer/plugin_installer.py index 4cc9925..ff0553e 100644 --- a/plugin_installer/plugin_installer.py +++ b/plugin_installer/plugin_installer.py @@ -378,6 +378,7 @@ class PluginInstaller(GajimPlugin): if not desc.startswith('<body '): desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \ desc + ' </body>' + desc = desc.replace('\n', '<br/>') self.plugin_description_textview.tv.display_html( desc, self.plugin_description_textview) self.plugin_description_textview.tv.set_property('sensitive', True) |