diff --git a/secretary.py b/secretary.py index 2e74157..dfa2c81 100644 --- a/secretary.py +++ b/secretary.py @@ -829,9 +829,11 @@ class Renderer(object): return result.replace('\n\n', '') - 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)) + return Markup(ODTText) + def image_filter(self, value, *args, **kwargs): """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