Opened 13 years ago
Closed 13 years ago
#7574 closed defect (fixed)
NameTemplate stopped working
Reported by: | anonymous | Owned by: | simon04 |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | NameTemplate | Cc: |
Description ¶
I think the recent changes broke something relating name templates.
The following name template (which I load in my presets to show in relation list information about tags in relation of type destination_sign) stopped working. The latest working josm version I can find in download directory is 5148. Version 5159 and later don't work anymore (I don't know about versions in-between):
<?xml version="1.0" encoding="UTF-8"?>
<presets>
<item name="Destination sign" type="relation"
name_template="destination_sign (?{'{destination} {time}' | '{destination} {distance}' | '{destination}'}) "
name_template_filter="type=destination_sign">
</item>
</presets>
Change History (4)
comment:1 by , 13 years ago
Owner: | changed from | to
---|
comment:2 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
In v5164 something seems still wrong.
For example, having in the presets a name template containing the text I listed in the first message, if I download relation 2114126 and look at the relations list:
in JOSM v5148 it is listed as:
destination_sign (MILANO 19) (4 members) [id: 2,114,126]
in JOSM v5164 it is listed (same as I hadn't the name template preset) as:
destination_sign (2114126, 4 members) [id: 2,114,126]
In 5163/josm: