[freenet-cvs] r15203 - trunk/plugins/Echo/src/plugins/echo

fred at freenetproject.org fred at freenetproject.org
Sun Sep 16 13:38:00 UTC 2007


Author: fred
Date: 2007-09-16 13:38:00 +0000 (Sun, 16 Sep 2007)
New Revision: 15203

Modified:
   trunk/plugins/Echo/src/plugins/echo/Echo.java
Log:
Do not serialize the XHTML

Modified: trunk/plugins/Echo/src/plugins/echo/Echo.java
===================================================================
--- trunk/plugins/Echo/src/plugins/echo/Echo.java	2007-09-16 13:34:18 UTC (rev 15202)
+++ trunk/plugins/Echo/src/plugins/echo/Echo.java	2007-09-16 13:38:00 UTC (rev 15203)
@@ -156,16 +156,17 @@
 			
 			/*
 				Nice but input white space are not respected
-			*/
+			
 			ByteArrayOutputStream baos = new ByteArrayOutputStream();
 			Serializer serializer = new Serializer(baos);
 			serializer.setIndent(4);
 			serializer.setMaxLength(128);
 			serializer.write(new Document((Element) transform.transform(new Document(p.toXML())).get(0)));
 			return baos.toString();
+			*/
 			
-
-// 			return t.transform(new Document(p.toXML())).get(0).toXML();
+			return transform.transform(new Document(p.toXML())).get(0).toXML();
+			
 		} catch (Exception e) {
 			e.printStackTrace();
 			return e.toString();




More information about the cvs mailing list