From cf0d3c06c41a5a0c5cc11720f17edf16aaea5d40 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 4 Jul 2023 22:54:55 +0200 Subject: [PATCH] PDF: substitute - for HYPHEN (U+2010) --- app/scodoc/sco_pdf.py | 2 ++ 1 file changed, 2 insertions(+) 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
par des
s = re.sub(r"", "
", s) + # And substitute unicode characters not supported by ReportLab + s = s.replace("‐", "-") return s