PluginInstallerPlugin, EmoticonsPackPlugin. fix new line in description
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -374,6 +374,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)
|
||||
|
||||
Reference in New Issue
Block a user