rootlistopened = true;
}
for (int j = 0; j < differences.length; j++) {
RangeDifference d = differences[j];
boolean lvl1listopened = false;
if (rootlistopened) {
txt.addHtml("<li>");
}
if (d.leftLength() + d.rightLength() > 1) {
txt.addHtml("<ul class='changelist'>");
lvl1listopened = true;
}
// left are the old ones
for (int i = d.leftStart(); i < d.leftEnd(); i++) {
if (lvl1listopened)
txt.addHtml("<li>");
// add a bullet for a old tag
addTagOld(txt, other.getAncestor(i));
if (lvl1listopened)
txt.addHtml("</li>");
}
// right are the new ones
for (int i = d.rightStart(); i < d.rightEnd(); i++) {
if (lvl1listopened)
txt.addHtml("<li>");
// add a bullet for a new tag
addTagNew(txt, this.getAncestor(i));