PluginInstallerPlugin, EmoticonsPackPlugin. fix new line in description

This commit is contained in:
Denis Fomin
2013-05-04 18:25:34 +04:00
parent 8c221d266e
commit 17cef576e9
2 changed files with 2 additions and 1 deletions

View File

@@ -184,7 +184,7 @@ class EmoticonsPackPlugin(GajimPlugin):
desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \ desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \
desc + ' </body>' desc + ' </body>'
desc = desc.replace('preview.image', ('file:' + os.path.join( 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( self.emoticons_description_textview.tv.display_html(
desc, self.emoticons_description_textview) desc, self.emoticons_description_textview)
self.emoticons_description_textview.tv.set_property( self.emoticons_description_textview.tv.set_property(

View File

@@ -374,6 +374,7 @@ class PluginInstaller(GajimPlugin):
if not desc.startswith('<body '): if not desc.startswith('<body '):
desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \ desc = '<body xmlns=\'http://www.w3.org/1999/xhtml\'>' + \
desc + ' </body>' desc + ' </body>'
desc = desc.replace('\n', '<br/>')
self.plugin_description_textview.tv.display_html( self.plugin_description_textview.tv.display_html(
desc, self.plugin_description_textview) desc, self.plugin_description_textview)
self.plugin_description_textview.tv.set_property('sensitive', True) self.plugin_description_textview.tv.set_property('sensitive', True)