Changeset 3276 in josm


Ignore:
Timestamp:
2010-05-24T18:29:18+02:00 (15 years ago)
Author:
stoecker
Message:

fix #4709 - images in help missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java

    r3083 r3276  
    122122                    // Also make sure image URLs are absolute
    123123                    //
    124                     line = line.replaceAll("<img src=\"/", "<img border=\"0\" src=\"" + baseUrl + "/").replaceAll("href=\"/",
     124                    line = line.replaceAll("<img ([^>]*)src=\"/", "<img border=\"0\" \\1src=\"" + baseUrl + "/").replaceAll("href=\"/",
    125125                            "href=\"" + baseUrl + "/").replaceAll(" />", ">");
    126126                    sb.append(line);
Note: See TracChangeset for help on using the changeset viewer.