Ticket #8827: findSummaryDocumentation_table.diff

File findSummaryDocumentation_table.diff, 1.1 KB (added by brycenesbitt, 12 years ago)

Patch to add proper <table></table> to findSummaryDocumentation

  • src/org/openstreetmap/josm/actions/OpenLocationAction.java

     
    153153     * @since 6031
    154154     */
    155155    public String findSummaryDocumentation() {
    156         String result = "";
    157         for (int i = 0; i < downloadTasks.size(); i++) {
    158             Class<? extends DownloadTask> taskClass = downloadTasks.get(i);
     156        String result = "<table border=1>";
     157        for (Class<? extends DownloadTask> taskClass : downloadTasks) {
    159158            if (taskClass != null) {
    160159                try {
    161160                    DownloadTask task = taskClass.getConstructor().newInstance();
    162                     result += "<br/>" + task.acceptsDocumentationSummary();
     161                    result += task.acceptsDocumentationSummary();
    163162                } catch (Exception e) {
    164163                    e.printStackTrace();
    165164                }
    166165            }
    167166        }
     167        result += "</table>";
    168168        return result;
    169169    }
    170170