Mercurial > libervia-backend
changeset 2331:01877048c94a
jp (blog/edit): avoid call to syntaxConvert if syntax is already XHTML
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 13 Jul 2017 22:49:37 +0200 |
parents | 74c1dbabeec8 |
children | 7df0a77a5064 |
files | frontends/src/jp/cmd_blog.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_blog.py Thu Jul 13 21:54:15 2017 +0200 +++ b/frontends/src/jp/cmd_blog.py Thu Jul 13 22:49:37 2017 +0200 @@ -367,6 +367,8 @@ 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)