Unwrap <u elements

Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
This commit is contained in:
gtema 2022-10-04 10:55:30 +00:00 committed by zuul
parent 9f6c9f3524
commit c83f1e753b

View File

@ -243,6 +243,10 @@ class OTCDocConvertor:
else:
logging.debug("Dropping unreferred link %s", lnk)
# Undeline element should not be used at all
for underline in soup.body.find_all("u"):
underline.unwrap()
for li in soup.body.find_all("li"):
del li["id"]