From 9cdcd7f21ac92d45c2935cd2c203bd62a84d5071 Mon Sep 17 00:00:00 2001 From: Al Date: Fri, 9 Sep 2016 08:59:50 -0400 Subject: [PATCH] [fix] indentation --- scripts/geodata/address_formatting/formatter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/geodata/address_formatting/formatter.py b/scripts/geodata/address_formatting/formatter.py index 5079a81c..1a728826 100644 --- a/scripts/geodata/address_formatting/formatter.py +++ b/scripts/geodata/address_formatting/formatter.py @@ -623,6 +623,8 @@ class AddressFormatter(object): template = self.template_cache[cache_key] continue + other_token = self.tag_token(other) + # Don't allow insertions between road and house_number # This can happen if e.g. "level" is supposed to be inserted # after house number assuming that it's a continental European @@ -633,7 +635,6 @@ class AddressFormatter(object): # treat house_number and road as an atomic unit. if not allow_between_house_number_and_road: - other_token = self.tag_token(other) if other == self.HOUSE_NUMBER and component != self.ROAD: road_tag = self.tag_token(self.ROAD)