Commit e1552f3f authored by Dan Pascu's avatar Dan Pascu

PEP 8 fix

parent 6fe0fadc
...@@ -2569,7 +2569,7 @@ class HtmlProcessor(object): ...@@ -2569,7 +2569,7 @@ class HtmlProcessor(object):
if isinstance(content, basestring): if isinstance(content, basestring):
doc = html.fromstring(content) doc = html.fromstring(content)
autolink(doc, link_regexes=cls._autolink_re) autolink(doc, link_regexes=cls._autolink_re)
return html.tostring(doc, encoding='unicode') # add method='xml' to get <br/> xhtml style tags and doctype=doc.getroottree().docinfo.doctype for prepending the DOCTYPE line return html.tostring(doc, encoding='unicode') # add method='xml' to get <br/> xhtml style tags and doctype=doc.getroottree().docinfo.doctype for prepending the DOCTYPE line
else: else:
autolink(content, link_regexes=cls._autolink_re) autolink(content, link_regexes=cls._autolink_re)
return content return content
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment