Changeset 3569 in josm for trunk


Ignore:
Timestamp:
2010-09-30T17:28:07+02:00 (14 years ago)
Author:
stoecker
Message:

fix Trac page reading for slight 0.12 changes

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

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

    r3276 r3569  
    110110                } else if (line.contains("<h3>Attachments</h3>")) {
    111111                    isInContent = false;
     112                } else if (line.contains("<div id=\"attachments\">")) {
     113                    isInContent = false;
     114                } else if (line.contains("<div class=\"trac-modifiedby\">")) {
     115                    continue;
    112116                } else if (line.contains("<input type=\"submit\" name=\"attachfilebutton\"")) {
    113117                    // heuristic: if we find a button for uploading images we are in an
  • trunk/src/org/openstreetmap/josm/tools/WikiReader.java

    r2512 r3569  
    125125            } else if (line.contains("<h3>Attachments</h3>")) {
    126126                inside = false;
     127            } else if (line.contains("<div id=\"attachments\">")) {
     128                inside = false;
     129            } else if (line.contains("<div class=\"trac-modifiedby\">")) {
     130                continue;
    127131            }
    128132            if (inside && !transl) {
Note: See TracChangeset for help on using the changeset viewer.