remove whitespace

This commit is contained in:
Antonia 2024-09-06 23:46:09 +02:00
parent f413db0fac
commit 5c932a6d08

View file

@ -31,7 +31,7 @@ if "tilelayer" in properties and properties['tilelayer'] != {} :
config["tilelayer"]["attribution"] = re.sub(r'\[\[([^|]+)\|([^|]+)\]\]', r'<a href="\1" >\2</a>', config["tilelayer"]["attribution"])
else :
config["tilelayer"] = { "attribution" : 'Map data © <a href="http://osm.org/copyright" >OpenStreetMap contributors</a>', "url_template" : "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" }
def normalize_name(name) :
return name.replace("/", "_").replace("-","").replace(" ","").replace(".","")