Skip to content
Snippets Groups Projects
Commit f2889b7b authored by Kalsron Jeremy's avatar Kalsron Jeremy
Browse files

Handle text for only one way correctly.

parent c28cbe7f
No related branches found
No related tags found
No related merge requests found
......@@ -305,8 +305,9 @@ for branch in crossroad.branches:
# post process to remove ':' and duplicate information if there's only one type of way in one direction
branch_desc = branch_desc.split(" ")
if "et" not in branch_desc:
if " et " not in branch_desc:
i = branch_desc.index(":")
if branch_desc[i-2] == "d'une": branch_desc[i+1] = "d'une"
branch_desc.pop(i-2)
branch_desc.pop(i-2)
branch_desc.pop(i-2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment