From 9ab0fca31ca3323f27d2d4213bd28c0aecfd4308 Mon Sep 17 00:00:00 2001 From: "Daniel J. Hofmann" Date: Mon, 10 Jul 2017 15:41:15 +0200 Subject: [PATCH] Canonicalizes all OSM string list handling in the profiles --- features/guidance/exit-numbers-names.feature | 4 ++-- profiles/lib/handlers.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/features/guidance/exit-numbers-names.feature b/features/guidance/exit-numbers-names.feature index 923ad01a8..bb8483f56 100644 --- a/features/guidance/exit-numbers-names.feature +++ b/features/guidance/exit-numbers-names.feature @@ -41,8 +41,8 @@ Feature: Exit Numbers and Names | ef | motorway_link | ExitRamp | | When I route I should get - | waypoints | route | turns | exits | - | a,f | MainRoad,ExitRamp,ExitRamp | depart,off ramp slight right,arrive | ,10;12, | + | waypoints | route | turns | exits | + | a,f | MainRoad,ExitRamp,ExitRamp | depart,off ramp slight right,arrive | ,10; 12, | Scenario: Exit number on the ways after the motorway junction, multiple exits diff --git a/profiles/lib/handlers.lua b/profiles/lib/handlers.lua index 0b9381c75..28b2981da 100644 --- a/profiles/lib/handlers.lua +++ b/profiles/lib/handlers.lua @@ -48,7 +48,7 @@ function Handlers.handle_names(way,result,data,profile) end if exits then - result.exits = exits + result.exits = canonicalizeStringList(exits, ";") end end