1
0
Fork 0

PDF: substitute - for HYPHEN (U+2010)

This commit is contained in:
Emmanuel Viennet 2023-07-04 22:54:55 +02:00
parent e963ca52f5
commit cf0d3c06c4
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ def SU(s: str) -> str:
s = html.unescape(s)
# Remplace les <br> par des <br/>
s = re.sub(r"<br\s*>", "<br/>", s)
# And substitute unicode characters not supported by ReportLab
s = s.replace("", "-")
return s