Changeset 10059 in josm


Ignore:
Timestamp:
2016-03-27T18:56:02+02:00 (22 months ago)
Author:
Don-vip
Message:

see #11924 - write proper html code to see it it resolves unit test failing only with jdk9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/GpxLayer.java

    r10008 r10059  
    135135    @Override
    136136    public Object getInfoComponent() {
    137         StringBuilder info = new StringBuilder(48);
     137        StringBuilder info = new StringBuilder(48).append("<html>");
    138138
    139139        if (data.attr.containsKey("name")) {
     
    177177        info.append(tr("Length: {0}", SystemOfMeasurement.getSystemOfMeasurement().getDistText(data.length()))).append("<br>")
    178178            .append(trn("{0} route, ", "{0} routes, ", data.routes.size(), data.routes.size())).append(
    179                 trn("{0} waypoint", "{0} waypoints", data.waypoints.size(), data.waypoints.size())).append("<br>");
     179                trn("{0} waypoint", "{0} waypoints", data.waypoints.size(), data.waypoints.size())).append("<br>")
     180            .append("</html>");
    180181
    181182        final JScrollPane sp = new JScrollPane(new HtmlPanel(info.toString()));
Note: See TracChangeset for help on using the changeset viewer.