From db06965385875d9a09e285da9b6880c785edaf19 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 25 Mar 2019 07:06:48 +0100 Subject: [PATCH] =?UTF-8?q?jp=20(blog/edit):=20fixed=20handling=20of=20XHT?= =?UTF-8?q?ML=20content=20when=20it=20is=20not=20already=20wrapped=20in=20?= =?UTF-8?q?
=E2=80=A6
?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sat_frontends/jp/cmd_blog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sat_frontends/jp/cmd_blog.py b/sat_frontends/jp/cmd_blog.py index 0adcfd42..62a63510 100644 --- a/sat_frontends/jp/cmd_blog.py +++ b/sat_frontends/jp/cmd_blog.py @@ -570,6 +570,9 @@ class Edit(base.CommandBase, BlogPublishCommon, common.BaseEdit): content, SYNTAX_XHTML, self.current_syntax, False, self.profile ) if content and self.current_syntax == SYNTAX_XHTML: + content = content.strip() + if not content.startswith('
'): + content = u'
' + content + u'
' try: from lxml import etree except ImportError: