Modify

Opened 13 years ago

Closed 13 years ago

#6813 closed defect (fixed)

Quote characters not displayed in relations "note" attribute

Reported by: Don-vip Owned by: team
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc:

Description (last modified by Don-vip)

If a relation does not have any "name" or "ref" attribute, but a "note" containing a quote character, the note value is displayed without the quote in Relations window.

See attached screenshot:

The error comes from MessageFormat.format() call in I18n.trc_lazy() method. I don't know if this call is needed as the given argument is always null ?

Attachments (1)

josm_quote.png (9.3 KB ) - added by Don-vip 13 years ago.

Download all attachments as: .zip

Change History (5)

by Don-vip, 13 years ago

Attachment: josm_quote.png added

comment:1 by Don-vip, 13 years ago

Description: modified (diff)

comment:2 by Don-vip, 13 years ago

Description: modified (diff)

comment:3 by bastiK, 13 years ago

I guess it is intended for consistency with other *tr* methods.

But it doesn't seem to be a good idea to run MessageFormat.format() on a user string. E.g. the tag "note=brace:{" causes an exception ("IllegalArgumentException: Unmatched braces in the pattern.").

comment:4 by bastiK, 13 years ago

Resolution: fixed
Status: newclosed

In [4477/josm]:

fixed #6813 - Quote characters not displayed in relations "note" attribute (preliminary)

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. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.