jp (blog/edit): avoid call to syntaxConvert if syntax is already XHTML
This commit is contained in:
parent
bd6ac76b45
commit
60700377b8
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue