jp (blog/edit): avoid call to syntaxConvert if syntax is already XHTML

This commit is contained in:
Goffi 2017-07-13 22:49:37 +02:00
commit 60700377b8

View file

@ -367,6 +367,8 @@ class Edit(base.CommandBase, BlogCommon, common.BaseEdit):
if self.args.syntax is None:
# default syntax has been used
mb_data['content_rich'] = content
elif self.current_syntax == SYNTAX_XHTML:
mb_data['content_xhtml'] = content
else:
mb_data['content_xhtml'] = self.host.bridge.syntaxConvert(content, self.current_syntax, SYNTAX_XHTML, False, self.profile)