Commit 0bb08a13 authored by Maxime Perrotin's avatar Maxime Perrotin

Fix generation of GSER output

parent d6ed059a
......@@ -492,10 +492,11 @@ def DumpTypeDumper(
'path[i]',
containedNode,
names)
lines.append(codeIndent + "state = self.GetState()")
lines.append(codeIndent + "length = %s.GetLength()" % variableName)
lines.append(codeIndent + "self.Reset(state)")
lines.append(codeIndent + "map(partial(emitElem, %s), xrange(length))" % variableName)
if variableName.startswith("path[i]"):
lines.append(codeIndent + 'self.Reset(state)')
lines.append(codeIndent + 'self.Reset(state)')
lines.append(codeIndent + 'lines.append("}")')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment