From a79c9ad00785273a61156f58b7a226b52b41e70b Mon Sep 17 00:00:00 2001 From: Matthew Scragg Date: Mon, 7 Oct 2013 17:03:23 -0500 Subject: [PATCH] fixed bug with clean html --- realms/wiki.py | 1 + 1 file changed, 1 insertion(+) diff --git a/realms/wiki.py b/realms/wiki.py index 1d2cec8..5ce17eb 100644 --- a/realms/wiki.py +++ b/realms/wiki.py @@ -69,6 +69,7 @@ class Wiki(): def write_page(self, name, content, message=None, create=False, username=None, email=None): # adding the div wrapper apparently fixes anomalies with the lxml parser with certain markdown content = clean_html('
' + content + '
') + content = content[5:-6] filename = self.cname_to_filename(to_canonical(name)) f = open(self.path + "/" + filename, 'w') f.write(content)