Modify

Opened 11 years ago

Closed 11 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; + &quot;und nach Vereinbarung&quot;,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 &quot;Bitte Termin vereinbaren!&quot;; We\, PH off" default="" delete_if_empty="true" />

Attachments (0)

Change History (3)

comment:1 Changed 11 years ago by jttt

Resolution: fixed
Status: newclosed

In [3842/josm]:

Fix #5892 Escaping does not work for <combo> in presets

comment:2 Changed 11 years ago by Fabi2

Resolution: fixed
Status: closedreopened

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.

comment:3 Changed 11 years ago by jttt

Resolution: fixed
Status: reopenedclosed

In [3861/josm]:

Fix #5892 Escaping does not work for <combo> in presets

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.