fixed bug with clean html

這個提交存在於:
Matthew Scragg 2013-10-07 17:03:23 -05:00
父節點 a03299773e
當前提交 a79c9ad007

檢視檔案

@ -69,6 +69,7 @@ class Wiki():
def write_page(self, name, content, message=None, create=False, username=None, email=None): 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 # adding the div wrapper apparently fixes anomalies with the lxml parser with certain markdown
content = clean_html('<div>' + content + '</div>') content = clean_html('<div>' + content + '</div>')
content = content[5:-6]
filename = self.cname_to_filename(to_canonical(name)) filename = self.cname_to_filename(to_canonical(name))
f = open(self.path + "/" + filename, 'w') f = open(self.path + "/" + filename, 'w')
f.write(content) f.write(content)