Ignore:
Timestamp:
2020-01-13T23:51:06+01:00 (5 years ago)
Author:
simon04
Message:

see #14465 -Tag2Link: combine links with same name and launch at once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Tag2Link.java

    r15702 r15706  
    122122    public static void getLinksForTag(String key, String value, LinkConsumer linkConsumer) {
    123123
     124        if (value == null || value.isEmpty()) {
     125            return;
     126        }
     127
    124128        // Search
    125129        if (key.matches("^(.+[:_])?name([:_].+)?$")) {
     
    151155        if (key.matches("(.*:)?wikidata")) {
    152156            OsmUtils.splitMultipleValues(value)
    153                     .forEach(q -> linkConsumer.acceptLink(tr("View Wikidata item {0}", q), "https://www.wikidata.org/wiki/" + q));
     157                    .forEach(q -> linkConsumer.acceptLink(tr("View Wikidata item"), "https://www.wikidata.org/wiki/" + q));
    154158        }
    155159        if (key.matches("(.*:)?species")) {
Note: See TracChangeset for help on using the changeset viewer.