From 70488d23de4b5bc0ef32cb96d8eb3cb2b428f79b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20Ram=C3=ADrez?= Date: Tue, 19 Sep 2017 15:16:17 -0600 Subject: [PATCH] It's not longer required for template designer to mark a markdown filter output as safe. --- secretary.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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