Opened 12 years ago
Closed 12 years ago
#5892 closed defect (fixed)
Escaping does not work for <combo> in presets
Reported by: | Fabi2 | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
As stated on https://josm.openstreetmap.de/wiki/TaggingPresets
"values="entry1,entry2,entry3"
A list of entries (for the combo box and multiselect). The list has to be separated by commas (for the combo box) or by the specified delimiter (for the multiselect). If a value contains the delimiter, the delimiter may be escaped with a backslash. If a value contains a backslash, it must also be escaped with a backslash. "
A backslash can be used in combo elemets to escape the values, but this does not work in JOSM 3835 for the following example:
<combo key="opening_hours" text="Sprechzeiten" values="Mo-Fr 08:30-18:00; PH off,Mo-Fr 8:30-12:00\,15:00-18:00; PH off; + "und nach Vereinbarung",Mo-Fr 8:30-12:00\,Mo-Th 15:00-18:00; PH off,Mo-Tu 8:00-15:00\, Th 8:00-18:00\, Fr 8:00-12:00 "Bitte Termin vereinbaren!"; We\, PH off" default="" delete_if_empty="true" />
Attachments (0)
Change History (3)
comment:1 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Now partial works, but thows away the data behind the last unescaped ",". Which is
Mo-Tu 8:00-15:00, Th 8:00-18:00, Fr 8:00-12:00 "Bitte Termin vereinbaren!"; We, PH off
for the above example.
In [3842/josm]: