From 7635de2181f5e697d93b5cc8c85c3b3df925f018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 12 Aug 2025 18:40:56 +0200 Subject: [PATCH] [scripts/pyprint] update """ string handling --- scripts/pyprint.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/pyprint.py b/scripts/pyprint.py index 48dad5eb..e49e0ebc 100644 --- a/scripts/pyprint.py +++ b/scripts/pyprint.py @@ -21,15 +21,14 @@ def pyprint(obj, indent=0, sort=None, oneline=True, lmin=0, lmax=16): else: prefix = "" + quote_beg = quote_end = '"' if "\n" in obj: - quote = '"""' + quote_beg = '"""\\\n' + quote_end = '\\\n"""' elif '"' in obj: obj = re.sub(r'(?