Fix BeautifulSoup warning

master
Thomas Sileo 2019-09-01 10:45:18 +02:00
rodzic 5f9c6b8dad
commit 96121e57f3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -22,7 +22,7 @@ def highlight(html: str) -> str:
if not code.parent.name == "pre":
continue
lexer = guess_lexer(code.text)
tag = BeautifulSoup(phighlight(code.text, lexer, _FORMATTER)).body.next
tag = BeautifulSoup(phighlight(code.text, lexer, _FORMATTER), "html5lib").body.next
pre = code.parent
pre.replaceWith(tag)
out = soup.body