diff.jsp revision 1388
0N/ASee LICENSE.txt included in this distribution for the specific
0N/Afile and include the License file at LICENSE.txt.
1388N/A return "<script type=\"text/javascript\">/* <![CDATA[ */ "
1388N/A .append("&format=").append(dd.type.getAbbrev())
1388N/A cfg = PageConfig.get(request);
1388N/A DiffData dd = cfg.getDiffData();
1388N/A if (dd.errorMsg != null) {
1388N/A <p><%= dd.errorMsg %></p>
1388N/A } else if (dd.revision.size() == 0) {
1388N/A for (DiffType t : DiffType.values()) {
1388N/A %> <span class="active dbtab"><%= t.toString() %><%
1388N/A if (t == DiffType.OLD) {
1388N/A } else if (t == DiffType.NEW) {
1388N/A if (t == DiffType.OLD) {
1388N/A } else if (t == DiffType.NEW) {
1388N/A for (int i=0; i < dd.revision.size(); i++) {
1388N/A Delta d = dd.revision.getDelta(i);
1388N/A Chunk c1 = d.getOriginal();
1388N/A Chunk c2 = d.getRevised();
1388N/A bs1.setLength(0);
1388N/A bs2.setLength(0);
1388N/A Util.htmlize(file1[i1], bs1);
1388N/A Util.htmlize(file2[i2], bs2);
1388N/A String[] ss = Util.diffline(bs1, bs2);
1388N/A bs1.setLength(0);
1388N/A Util.htmlize(file1[i1], bs1);
1388N/A file1[i1] = bs1.append("</span>").toString();
1388N/A bs2.setLength(0);
1388N/A Util.htmlize(file2[i2], bs2);
1388N/A file2[i2] = bs2.append("</span>").toString();
1388N/A bn2.setLength(0);
1388N/A bs2.setLength(0);
1388N/A bn1.setLength(0);
1388N/A bs1.setLength(0);
1388N/A bn2.setLength(0);
1388N/A bs2.setLength(0);
1388N/A bn2.setLength(0);
1388N/A bs2.setLength(0);
1388N/A bn1.setLength(0);
1388N/A bs1.setLength(0);
1388N/A if (file1.length >= ln1) {
1388N/A bn2.setLength(0);
1388N/A bs2.setLength(0);
1388N/A ln1 = dumpFile(ln1, file1.length - ln1, 0, file1, bn2, bs2, dd, true);
1388N/A ln2 = dumpFile(ln2, file2.length - ln2, 0, file2, bn2, bs2, dd, true);
1388N/A ln2 = dumpFile(ln2, file2.length - ln2, 0, file2, bn2, bs2, dd, true);
1388N/A bn1.setLength(0);
1388N/A bs1.setLength(0);
1388N/A ln1 = dumpFile(ln1, file1.length - ln1, 0, file1, bn1, bs1, dd, false);
1388N/A ln2 = dumpFile(ln2, file2.length - ln2, 0, file2, bn2, bs2, dd, true);