fix(convert): ne prettify pas le html car ça casse inutilement des choses

wip_revisions
François Poulain 2 years ago
parent e8771df78d
commit 3dc21e7b94
  1. 4
      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):

Loading…
Cancel
Save