From a8fceb6d3ce667ad808667df219aaeb70becfd49 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 16 Feb 2012 15:29:11 +0100 Subject: [PATCH] Add whitespace after XML declaration --- src/org/marc4j/TurboMarcXmlWriter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/marc4j/TurboMarcXmlWriter.java b/src/org/marc4j/TurboMarcXmlWriter.java index 3248ed3..9402eb3 100644 --- a/src/org/marc4j/TurboMarcXmlWriter.java +++ b/src/org/marc4j/TurboMarcXmlWriter.java @@ -413,6 +413,8 @@ public class TurboMarcXmlWriter implements MarcWriter { try { AttributesImpl atts = new AttributesImpl(); handler.startDocument(); + if (indent) + handler.ignorableWhitespace("\n".toCharArray(), 0, 1); // The next line duplicates the namespace declaration for Marc XML handler.startPrefixMapping("tmarc", Constants.TURBO_MARCXML_NS_URI); // add namespace declaration using attribute - need better solution -- 1.7.10.4