diff --git a/drupal2spip_lal/base/convert.py b/drupal2spip_lal/base/convert.py index cfaf83c..d3e6e8a 100644 --- a/drupal2spip_lal/base/convert.py +++ b/drupal2spip_lal/base/convert.py @@ -90,14 +90,14 @@ def fetch_and_remove_logo(article, force_download): if src and re.match(r'^(https?)?://', src): fetch_logo(src) remove_img(img) - article.descriptif = soup.prettify(formatter="html5") + article.descriptif = str(soup) article.save() def sanitarize_html(html): html = strong_to_dl(html) soup = bs(html, 'html.parser') - return soup.prettify(formatter="html5") + return str(soup) def convert_node(node, options):