It's not longer required for template designer to mark a markdown filter output as safe.

This commit is contained in:
Christopher Ramírez 2017-09-19 15:16:17 -06:00
parent ffba32baed
commit 70488d23de

View file

@ -829,9 +829,11 @@ class Renderer(object):
return result.replace('\n\n', '<text:p text:style-name="Standard"/>') return result.replace('\n\n', '<text:p text:style-name="Standard"/>')
return ''.join(node_as_str for node_as_str in map(node_to_string, ODTText = ''.join(node_as_str for node_as_str in map(node_to_string,
xml_object.getElementsByTagName('html')[0].childNodes)) xml_object.getElementsByTagName('html')[0].childNodes))
return Markup(ODTText)
def image_filter(self, value, *args, **kwargs): def image_filter(self, value, *args, **kwargs):
"""Store value into template_images and return the key name where this """Store value into template_images and return the key name where this
method stored it. The value returned it later used to load the image method stored it. The value returned it later used to load the image