Author: jukka Date: Fri Sep 5 06:47:56 2008 New Revision: 692444 URL: http://svn.apache.org/viewvc?rev=692444&view=rev Log: TIKA-155: Java class file parser
Wrap the parsed content inside a <pre/> tag. Modified: incubator/tika/trunk/src/main/java/org/apache/tika/parser/asm/XHTMLClassVisitor.java Modified: incubator/tika/trunk/src/main/java/org/apache/tika/parser/asm/XHTMLClassVisitor.java URL: http://svn.apache.org/viewvc/incubator/tika/trunk/src/main/java/org/apache/tika/parser/asm/XHTMLClassVisitor.java?rev=692444&r1=692443&r2=692444&view=diff ============================================================================== --- incubator/tika/trunk/src/main/java/org/apache/tika/parser/asm/XHTMLClassVisitor.java (original) +++ incubator/tika/trunk/src/main/java/org/apache/tika/parser/asm/XHTMLClassVisitor.java Fri Sep 5 06:47:56 2008 @@ -64,6 +64,7 @@ try { xhtml.startDocument(); + xhtml.startElement("pre"); if (packageName != null) { writeKeyword("package"); @@ -121,6 +122,7 @@ public void visitEnd() { try { xhtml.characters("}\n"); + xhtml.endElement("pre"); xhtml.endDocument(); } catch (SAXException e) { throw new RuntimeException(e);