Skip to content

Commit 2476015

Browse files
Famlamfrodrigo
authored andcommitted
Fix: escape backslashes
1 parent 1e0547c commit 2476015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapcss/mapcss2osmose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def to_p(t):
814814
elif t['type'] == 'zoom_selector':
815815
return "" # Ignore
816816
elif t['type'] == 'quoted':
817-
return "'" + t['value'].replace("'", "\\'") + "'"
817+
return "'" + t['value'].replace('\\', '\\\\').replace("'", "\\'") + "'"
818818
elif t['type'] == 'osmtag':
819819
return "'" + t['value'] + "'"
820820
elif t['type'] == 'regexExpression':

0 commit comments

Comments
 (0)