diff --git a/panc/src/org/quattor/pan/utils/XmlUtils.java b/panc/src/org/quattor/pan/utils/XmlUtils.java
index <HASH>..<HASH> 100644
--- a/panc/src/org/quattor/pan/utils/XmlUtils.java
+++ b/panc/src/org/quattor/pan/utils/XmlUtils.java
@@ -30,6 +30,7 @@ public class XmlUtils {
 			if (!factory.getFeature(SAXTransformerFactory.FEATURE)) {
 				throw CompilerError.create(MSG_MISSING_SAX_TRANSFORMER);
 			}
+			factory.setAttribute("indent-number", new Integer(4));
 
 			// Can safely cast the factory to a SAX-specific one. Get the
 			// handler to feed with SAX events.
fix indentation for annotation files (possibly also for xml output files)