fontconfig: Branch 'main' - 2 commits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 10 06:33:13 UTC 2024


 src/cutout.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bd423ed68fd0e9667203443f52b601b270a638cf
Merge: ccd5201 b269e68
Author: Akira TAGOH <akira at tagoh.org>
Date:   Wed Apr 10 06:33:11 2024 +0000

    Merge branch 'fix-invalid-escape' into 'main'
    
    Fix invalid escape character \s
    
    See merge request fontconfig/fontconfig!314

commit b269e6853be6278cc9fe06b1c1d92f7d31504c01
Author: Dan Yeaw <dan at yeaw.me>
Date:   Sat Mar 9 21:56:11 2024 -0500

    Fix invalid escape character \s

diff --git a/src/cutout.py b/src/cutout.py
index 6b46529..39bdc54 100644
--- a/src/cutout.py
+++ b/src/cutout.py
@@ -37,8 +37,8 @@ if __name__== '__main__':
                 write = False
 
             if write and l:
-                stripped = re.sub('^\s+', '', l)
-                stripped = re.sub('\s*,\s*', ',', stripped)
+                stripped = re.sub(r'^\s+', '', l)
+                stripped = re.sub(r'\s*,\s*', ',', stripped)
                 if not stripped.isspace() and stripped:
                     out.write('%s\n' % stripped)
 


More information about the Fontconfig mailing list