Skip to contentSkip to conversation

conga/ricci/common XML.cpp

Cluster-devel [email protected] 1 participant 1 message Jun 2, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Branch: EXPERIMENTAL
Changes by: rmccabe at sourceware.org 2007-06-02 04:27:42

Modified files:
ricci/common : XML.cpp

Log message:
kill all the extra whitespace and indentation. it generates too much wasted data for storage reports.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/common/XML.cpp.diff?cvsroot=cluster&only_with_tag=EXPERIMENTAL&r1=1.8&r2=1.8.2.1

ricci/common/XML.cpp +4 -4
@@ -119,15 +119,15 @@
     xml += " " + name + "=\"" + value + "\"";
   }
   if (children().empty())
-    xml += "/>\n";
+    xml += "/>";
   else {
-    xml += ">\n";
+    xml += ">";
     for (list<XMLObject>::const_iterator iter = children().begin();
 	 iter != children().end();
 	 iter++) {
-      iter->generate_xml(xml, indent + "\t");
+      iter->generate_xml(xml, indent);
     }
-    xml += indent + "</" + _tag + ">\n";
+    xml += indent + "</" + _tag + ">";
   }
 }