Respect ';'-separated list in destination:ref tag

This commit is contained in:
Daniel J. Hofmann 2016-04-27 13:47:42 +02:00 committed by Patrick Niklaus
parent 4cf94319df
commit 445e5bed49
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B
2 changed files with 17 additions and 15 deletions

View File

@ -22,6 +22,7 @@ Feature: Destination Signs
| gh | | | Berlin | A1 |
| ij | | | Berlin | |
| kl | KL | E1 | Berlin | A1 |
| mn | MN | | Berlin;Hamburg | A1;A2 |
When I route I should get
| from | to | route |
@ -31,3 +32,4 @@ Feature: Destination Signs
| g | h | , |
| i | j | , |
| k | l | KL (E1),KL (E1) |
| m | n | MN (A1, A2: Berlin, Hamburg),MN (A1, A2: Berlin, Hamburg) |

View File

@ -10,7 +10,7 @@ function Destination.get_destination(way)
local rv = ""
if destination_ref and destination_ref ~= "" then
rv = rv .. destination_ref
rv = rv .. string.gsub(destination_ref, ";", ", ")
end
if destination and destination ~= "" then