You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by vg...@apache.org on 2008/11/08 01:29:06 UTC

svn commit: r712322 - /xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java

Author: vgritsenko
Date: Fri Nov  7 16:29:06 2008
New Revision: 712322

URL: http://svn.apache.org/viewvc?rev=712322&view=rev
Log:
split lines (tests like it)

Modified:
    xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java

Modified: xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java?rev=712322&r1=712321&r2=712322&view=diff
==============================================================================
--- xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java (original)
+++ xml/xindice/trunk/java/src/org/apache/xindice/webadmin/webdav/DAVResponse.java Fri Nov  7 16:29:06 2008
@@ -68,12 +68,13 @@
                 log.debug("Sending response for HREF " + res.getHref());
             }
             response.setStatus(WebdavStatus.SC_MULTI_STATUS);
-            out.write("<?xml version='1.0' encoding='utf-8'?>");
-            out.write("<multistatus xmlns='DAV:'>");
+            out.write("<?xml version='1.0' encoding='utf-8'?>\n");
+            out.write("<multistatus xmlns='DAV:'>\n");
             isMultistatus = true;
         }
 
         out.write(res.toString());
+        out.write("\n");
     }
 
     /**
@@ -86,6 +87,7 @@
     public void closeMultistatusResponse() throws IOException {
         if (isMultistatus) {
             out.write("</multistatus>");
+            out.write("\n");
             out.flush();
         }
     }