fixed bug with clean html

This commit is contained in:
Matthew Scragg 2013-10-07 17:03:23 -05:00
parent a03299773e
commit a79c9ad007

View file

@ -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('<div>' + content + '</div>')
content = content[5:-6]
filename = self.cname_to_filename(to_canonical(name))
f = open(self.path + "/" + filename, 'w')
f.write(content)