From 16e95c9686597f7ad10dbe80f22109e626d1d21b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Sun, 23 Jun 2019 22:47:08 +0200 Subject: [PATCH] mapcss: fix test code generation --- mapcss/mapcss2osmose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapcss/mapcss2osmose.py b/mapcss/mapcss2osmose.py index b15d44712..8cd41b835 100644 --- a/mapcss/mapcss2osmose.py +++ b/mapcss/mapcss2osmose.py @@ -449,7 +449,7 @@ def segregate_selectors_type(rules): out_rules[t].append(rule.copy()) out_rules[t][-1]['selectors'] = out_selector[t] out_rules[t][-1]['declarations'] = list(filter(lambda d: - not d['property'] or not d['property'].startswith('assert') or not d['property'].startswith('-osmoseAssert') or + not d['property'] or not (d['property'].startswith('assert') or d['property'].startswith('-osmoseAssert')) or (d['value']['type'] == 'single_value' and d['value']['value']['value'].startswith(t)) or (d['value']['type'] == 'declaration_value_function' and d['value']['params'][0]['value']['value'].startswith(t)), out_rules[t][-1]['declarations']))