velocity/velocity-AnakiaTask-jdom-XMLOutputter.patch
Fernando Nasser f2163e0de7 auto-import velocity-1.4-3jpp on branch devel from
velocity-1.4-3jpp.src.rpm
2004-10-18 19:49:33 +00:00

22 lines
810 B
Diff

--- src/java/org/apache/velocity/anakia/AnakiaTask.java.sav Wed Apr 14 14:26:40 2004
+++ src/java/org/apache/velocity/anakia/AnakiaTask.java Thu Sep 23 13:01:14 2004
@@ -34,6 +34,7 @@
import org.jdom.Document;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
+import org.jdom.output.Format;
import org.apache.velocity.Template;
import org.apache.velocity.app.VelocityEngine;
@@ -343,7 +344,9 @@
}
OutputWrapper ow = new OutputWrapper();
- ow.setEncoding (encoding);
+ Format owf = ow.getFormat();
+ owf.setEncoding (encoding);
+ ow.setFormat (owf);
context.put ("root", root.getRootElement());
context.put ("xmlout", ow );