strip whitespace from text attribute
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 1 Aug 2011 23:48:39 +0000 (19:48 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Mon, 1 Aug 2011 23:48:39 +0000 (19:48 -0400)
sfa/rspecs/pg_rspec.py

index f7f00dd..054e429 100755 (executable)
@@ -141,7 +141,7 @@ class PGRSpec(RSpec):
         opts = []
         if elem is not None:
             for e in elem:
-                opts.append((e.tag, e.text, e.attrib))
+                opts.append((e.tag, str(e.text).strip(), e.attrib))
         return opts
 
     def get_default_sliver_attributes(self, network=None):