git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bded536
)
adding this condition back to parseString logic (it is needed to correctly handle...
author
Tony Mack
<tmack@cs.princeton.edu>
Wed, 13 Jan 2010 02:05:50 +0000
(
02:05
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Wed, 13 Jan 2010 02:05:50 +0000
(
02:05
+0000)
sfa/util/rspec.py
patch
|
blob
|
history
diff --git
a/sfa/util/rspec.py
b/sfa/util/rspec.py
index
2848331
..
26ba673
100644
(file)
--- a/
sfa/util/rspec.py
+++ b/
sfa/util/rspec.py
@@
-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():