adding this condition back to parseString logic (it is needed to correctly handle...
authorTony Mack <tmack@cs.princeton.edu>
Wed, 13 Jan 2010 02:05:50 +0000 (02:05 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Wed, 13 Jan 2010 02:05:50 +0000 (02:05 +0000)
sfa/util/rspec.py

index 2848331..26ba673 100644 (file)
@@ -148,6 +148,9 @@ class RSpec:
                         # add if data is not empty
                         if child.data.strip():
                             node[elementName][childName].append(nextchild.data)
+                    elif child.hasChildNodes() and isinstance(child.childNodes[0], minidom.Text):
+                        for nextchild in child.childNodes:  
+                            node[elementName][childName].append(nextchild.data)
                     else:
                         childdict = self.toDict(child)
                         for value in childdict.values():