remove leading/trailing whitespace from values
Tony Mack [Wed, 17 Feb 2010 18:36:28 +0000 (18:36 +0000)]
support-scripts/gen-sites-xml.py

index 13de255..bfbcd6f 100755 (executable)
@@ -147,7 +147,7 @@ class PrettyXMLGenerator(XMLGenerator):
 
         self.write('<' + name)
         for (name, value) in attrs.items():
-            self.write(' %s=%s' % (name, quoteattr(value)))
+            self.write(' %s=%s' % (name, quoteattr(value.strip())))
         self.write('/>')
 
         if newl: