Commit 0b9faa27 authored by Matthieu Boileau's avatar Matthieu Boileau
Browse files

Solve conversion issues

parent dad9ddeb
......@@ -94,7 +94,7 @@ def html_img(s):
new_src = re.sub(r"\ADocuments/.*", src_replace, img_src)
img['src'] = new_src
return soup.prettify()
return soup.prettify(formatter=None) # formatter=None to avoid ">" -> ">" conversion
def nullify_url(message, text, url):
......@@ -298,7 +298,7 @@ class Article:
if self.skip_reason:
print(" SKIPPING:", self.skip_reason)
else:
self.title = spip_to_markdown(self.title, self.website)
self.title = spip_to_markdown(self.title, self.website).strip() # strip to remove any CR at end of string
tags = []
authors = AUTHORS
......
Supports Markdown
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