[damned-lies] Allow space before ':' while reading meson syntax



commit 9f10ffc1a619e3e67d165e27206b4cce6ce8c994
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Aug 15 22:45:53 2017 +0200

    Allow space before ':' while reading meson syntax

 stats/tests/meson-ui.build |    2 +-
 stats/utils.py             |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stats/tests/meson-ui.build b/stats/tests/meson-ui.build
index 4c634ca..4791291 100644
--- a/stats/tests/meson-ui.build
+++ b/stats/tests/meson-ui.build
@@ -1,4 +1,4 @@
 i18n = import('i18n')
 
-i18n.gettext(gnomebt_gettext_package, preset: 'glib')
+i18n.gettext(gnomebt_gettext_package, preset : 'glib')
 install_data('Makefile.in.in')
diff --git a/stats/utils.py b/stats/utils.py
index f42f483..f545e1a 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -168,7 +168,7 @@ class MesonfileWrapper(MakefileWrapper):
         content = super().content
         # Here be dragons: Try to make meson content look like Python
         content = re.sub(
-            r'(' + '|'.join(list(self.i18n_gettext_kwargs | self.gnome_yelp_kwargs)) + '):',
+            r'(' + '|'.join(list(self.i18n_gettext_kwargs | self.gnome_yelp_kwargs)) + ') ?:',
             r'\1=',
             content
         )


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]