Skip to content

Commit 6067dac

Browse files
committed
Invalid HTML from JarAnalyzer
JarAnalyzer nests <pre> elements inside other <pre> elements. HTML doesn't allow this.
1 parent 9814a04 commit 6067dac

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/org/opensolaris/opengrok/analysis/executables/JarAnalyzer.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package org.opensolaris.opengrok.analysis.executables;
2424

@@ -64,16 +64,11 @@ public void analyze(Document doc, StreamSource src, Writer xrefOut) throws IOExc
6464
FileAnalyzerFactory fac = AnalyzerGuru.find(ename);
6565
if (fac instanceof JavaClassAnalyzerFactory) {
6666
if (xrefOut != null) {
67-
xrefOut.append("<pre>");
67+
xrefOut.append("<br/>");
6868
}
69-
7069
JavaClassAnalyzer jca =
7170
(JavaClassAnalyzer) fac.getAnalyzer();
7271
jca.analyze(doc, new BufferedInputStream(zis), xrefOut);
73-
74-
if (xrefOut != null) {
75-
xrefOut.append("</pre>");
76-
}
7772
}
7873
}
7974
}

0 commit comments

Comments
 (0)