fixed bug with clean html
This commit is contained in:
parent
a03299773e
commit
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)
|
||||||
|
|
Loading…
Reference in a new issue