#1121057 libreoffice-numbertext: SyntaxWarning: invalid escape sequence '\s'

#1121057#5
Date:
2025-11-20 09:21:17 UTC
From:
To:
Looks like a typo, this patch corrects the problem:
--- /usr/lib/libreoffice/share/extensions/numbertext/pythonpath/org/Numbertext/Soros.py~        2023-12-05 19:08:54.000000000 +0100                                                                                
+++ /usr/lib/libreoffice/share/extensions/numbertext/pythonpath/org/Numbertext/Soros.py 2025-11-20 09:36:46.910701632 +0100
@@ -43,7 +43,7 @@ class _Soros:
         # switch off all country-dependent lines, and switch on the requested ones
         prg = re.sub(r"(^|[\n;])([^\n;#]*#[^\n]*[\[]:[^\n:\]]*:][^\n]*)", r"\1#\2", prg)
         prg = re.sub(r"(^|[\n;])#([^\n;#]*#[^\n]*[\[]:" + lang.replace("_", "-") + r":][^\n]*)", r"\1\2", prg)
-        matchline = re.compile("^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$")
+        matchline = re.compile(r"^\s*(\"[^\"]*\"|[^\s]*)\s*(.*[^\s])?\s*$")
         prefix = ""
         for s in re.sub("(#[^\n]*)?(\n|$)", ";", prg).split(";"):
             macro = re.match("== *(.*[^ ]?) ==", s)