@@ -2569,7 +2569,7 @@ class HtmlProcessor(object):
...
@@ -2569,7 +2569,7 @@ class HtmlProcessor(object):
ifisinstance(content,basestring):
ifisinstance(content,basestring):
doc=html.fromstring(content)
doc=html.fromstring(content)
autolink(doc,link_regexes=cls._autolink_re)
autolink(doc,link_regexes=cls._autolink_re)
returnhtml.tostring(doc,encoding='unicode')# add method='xml' to get <br/> xhtml style tags and doctype=doc.getroottree().docinfo.doctype for prepending the DOCTYPE line
returnhtml.tostring(doc,encoding='unicode')# add method='xml' to get <br/> xhtml style tags and doctype=doc.getroottree().docinfo.doctype for prepending the DOCTYPE line