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

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
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();
         }
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.