Changeset bbc2454


Ignore:
Timestamp:
May 23, 2016 6:21:24 AM (4 years ago)
Author:
str4d <str4d@…>
Branches:
master
Children:
f95100a
Parents:
62437ac
Message:

Remove \n from inside empty <ol>s

When there are no list items, the <ol>s are now rendered as <ol></ol>, which
means they can be selected in CSS with ol:empty (to e.g. display: none), because
:empty only ignores comments inside HTML tags. This will be unnecessary once
browsers support the :blank selector, which will build on :empty to also ignore
whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/JobQueueHelper.java

    r62437ac rbbc2454  
    5757        buf.append("<h3 id=\"activejobs\">")
    5858           .append(_t("Active jobs")).append(": ").append(activeJobs.size())
    59            .append("</h3><ol>\n");
     59           .append("</h3><ol>");
    6060        for (int i = 0; i < activeJobs.size(); i++) {
    6161            Job j = activeJobs.get(i);
     
    6767        buf.append("<h3 id=\"finishedjobs\">")
    6868           .append(_t("Just finished jobs")).append(": ").append(justFinishedJobs.size())
    69            .append("</h3><ol>\n");
     69           .append("</h3><ol>");
    7070        for (int i = 0; i < justFinishedJobs.size(); i++) {
    7171            Job j = justFinishedJobs.get(i);
     
    7777        buf.append("<h3 id=\"readyjobs\">")
    7878           .append(_t("Ready/waiting jobs")).append(": ").append(readyJobs.size())
    79            .append("</h3><ol>\n");
     79           .append("</h3><ol>");
    8080        ObjectCounter<String> counter = new ObjectCounter<String>();
    8181        for (int i = 0; i < readyJobs.size(); i++) {
     
    9696        buf.append("<h3 id=\"scheduledjobs\">")
    9797           .append(_t("Scheduled jobs")).append(": ").append(timedJobs.size())
    98            .append("</h3><ol>\n");
     98           .append("</h3><ol>");
    9999        long prev = Long.MIN_VALUE;
    100100        counter.clear();
Note: See TracChangeset for help on using the changeset viewer.