# HG changeset patch # User Goffi # Date 1553494008 -3600 # Node ID 2f39682f6d405d0ff160a8d3cb4c88ab4dd4e897 # Parent 148d301478907dc342c78819aa2e13caa8b2cc89 jp (blog/edit): fixed handling of XHTML content when it is not already wrapped in
diff -r 148d30147890 -r 2f39682f6d40 sat_frontends/jp/cmd_blog.py --- a/sat_frontends/jp/cmd_blog.py Mon Mar 25 07:06:48 2019 +0100 +++ b/sat_frontends/jp/cmd_blog.py Mon Mar 25 07:06:48 2019 +0100 @@ -570,6 +570,9 @@ 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: