[Libreoffice-commits] .: configmgr/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Fri Mar 9 07:33:12 PST 2012


 configmgr/source/writemodfile.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit c7ad399a535d21cc73f0e99fbea361e559b34d4f
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Mar 9 16:32:57 2012 +0100

    Line breaks in registrymodifications.xcu

diff --git a/configmgr/source/writemodfile.cxx b/configmgr/source/writemodfile.cxx
index 8683302..272e739 100644
--- a/configmgr/source/writemodfile.cxx
+++ b/configmgr/source/writemodfile.cxx
@@ -509,7 +509,7 @@ void writeModifications(
                 break;
             }
         }
-        writeData(handle, RTL_CONSTASCII_STRINGPARAM("</item>"));
+        writeData(handle, RTL_CONSTASCII_STRINGPARAM("</item>\n"));
     } else {
         assert(node.is());
         rtl::OUString pathRep(
@@ -573,10 +573,10 @@ void writeModFile(
     writeData(
         tmp.handle,
         RTL_CONSTASCII_STRINGPARAM(
-            "<?xml version=\"1.0\" encoding=\"UTF-8\"?><oor:items"
+            "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<oor:items"
             " xmlns:oor=\"http://openoffice.org/2001/registry\""
             " xmlns:xs=\"http://www.w3.org/2001/XMLSchema\""
-            " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"));
+            " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n"));
     //TODO: Do not write back information about those removed items that did not
     // come from the .xcs/.xcu files, anyway (but had been added dynamically
     // instead):
@@ -590,7 +590,7 @@ void writeModFile(
             Data::findNode(Data::NO_LAYER, data.getComponents(), j->first),
             j->second);
     }
-    writeData(tmp.handle, RTL_CONSTASCII_STRINGPARAM("</oor:items>"));
+    writeData(tmp.handle, RTL_CONSTASCII_STRINGPARAM("</oor:items>\n"));
     oslFileError e = osl_closeFile(tmp.handle);
     tmp.closed = true;
     if (e != osl_File_E_None) {


More information about the Libreoffice-commits mailing list