[fix] strip values in OpenAddresses components
This commit is contained in:
@@ -169,7 +169,9 @@ class OpenAddressesFormatter(object):
|
|||||||
if not_applicable_regex.match(value):
|
if not_applicable_regex.match(value):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
components[key] = value.strip(', ')
|
value = value.strip(', ')
|
||||||
|
if value:
|
||||||
|
components[key] = value
|
||||||
|
|
||||||
if components:
|
if components:
|
||||||
country, candidate_languages, language_props = self.language_rtree.country_and_languages(latitude, longitude)
|
country, candidate_languages, language_props = self.language_rtree.country_and_languages(latitude, longitude)
|
||||||
|
|||||||
Reference in New Issue
Block a user