diff --git a/app/scodoc/sco_pdf.py b/app/scodoc/sco_pdf.py index ffa11d259..841f8b3fa 100755 --- a/app/scodoc/sco_pdf.py +++ b/app/scodoc/sco_pdf.py @@ -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