Respect ';'-separated list in destination:ref tag
This commit is contained in:
parent
4cf94319df
commit
445e5bed49
@ -15,19 +15,21 @@ Feature: Destination Signs
|
|||||||
| m | n |
|
| m | n |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | name | ref | destination | destination:ref |
|
| nodes | name | ref | destination | destination:ref |
|
||||||
| ab | AB | E1 | | |
|
| ab | AB | E1 | | |
|
||||||
| cd | CD | | Berlin | |
|
| cd | CD | | Berlin | |
|
||||||
| ef | EF | | Berlin | A1 |
|
| ef | EF | | Berlin | A1 |
|
||||||
| gh | | | Berlin | A1 |
|
| gh | | | Berlin | A1 |
|
||||||
| ij | | | Berlin | |
|
| ij | | | Berlin | |
|
||||||
| kl | KL | E1 | Berlin | A1 |
|
| kl | KL | E1 | Berlin | A1 |
|
||||||
|
| mn | MN | | Berlin;Hamburg | A1;A2 |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | b | AB (E1),AB (E1) |
|
| a | b | AB (E1),AB (E1) |
|
||||||
| c | d | CD (Berlin),CD (Berlin) |
|
| c | d | CD (Berlin),CD (Berlin) |
|
||||||
| e | f | EF (A1: Berlin),EF (A1: Berlin) |
|
| e | f | EF (A1: Berlin),EF (A1: Berlin) |
|
||||||
| g | h | , |
|
| g | h | , |
|
||||||
| i | j | , |
|
| i | j | , |
|
||||||
| k | l | KL (E1),KL (E1) |
|
| k | l | KL (E1),KL (E1) |
|
||||||
|
| m | n | MN (A1, A2: Berlin, Hamburg),MN (A1, A2: Berlin, Hamburg) |
|
||||||
|
@ -10,7 +10,7 @@ function Destination.get_destination(way)
|
|||||||
local rv = ""
|
local rv = ""
|
||||||
|
|
||||||
if destination_ref and destination_ref ~= "" then
|
if destination_ref and destination_ref ~= "" then
|
||||||
rv = rv .. destination_ref
|
rv = rv .. string.gsub(destination_ref, ";", ", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
if destination and destination ~= "" then
|
if destination and destination ~= "" then
|
||||||
|
Loading…
Reference in New Issue
Block a user