diff --git a/src/pretix/base/pdf.py b/src/pretix/base/pdf.py index 7f575837c6..cc584072cc 100644 --- a/src/pretix/base/pdf.py +++ b/src/pretix/base/pdf.py @@ -831,9 +831,10 @@ class Renderer: textColor=Color(o['color'][0] / 255, o['color'][1] / 255, o['color'][2] / 255), alignment=align_map[o['align']] ) + # add an almost-invisible space   after hyphens as word-wrap in ReportLab only works on space chars text = conditional_escape( self._get_text_content(op, order, o) or "", - ).replace("\n", "
\n") + ).replace("\n", "
\n").replace("-", "- ") # reportlab does not support RTL, ligature-heavy scripts like Arabic. Therefore, we use ArabicReshaper # to resolve all ligatures and python-bidi to switch RTL texts.