Modify

Opened 2 years ago

Closed 2 years ago

#5892 closed defect (fixed)

Escaping does not work for <combo> in presets

Reported by: Fabi2 Owned by: team
Priority: normal 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 2 years ago by jttt

  • Resolution set to fixed
  • Status changed from new to closed

In [3842/josm]:

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

comment:2 Changed 2 years ago by Fabi2

  • Resolution fixed deleted
  • Status changed from closed to 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.

comment:3 Changed 2 years ago by jttt

  • Resolution set to fixed
  • Status changed from reopened to closed

In [3861/josm]:

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.