Closed GoogleCodeExporter closed 9 years ago
Without the typos, the code reads:
<for each="key, val_list in obj.iteritems()">
<key> : <for each="val in val_list"><val>
</for>
</for>
Original comment by laur...@bioecoforests.com
on 8 Jul 2013 at 4:56
lines with statements are removed after processing.
So I think you should write something like:
<for each="key, val_list in obj.iteritems()">
<key> : <val_list[1]>
<for each="val in val_list[1:]">
<val>
</for>
</for>
Original comment by cedric.krier@b2ck.com
on 9 Jul 2013 at 12:22
Indeed, the work-around works.
Original comment by laur...@bioecoforests.com
on 10 Jul 2013 at 12:44
Could you provide the raw XML of the odt?
Original comment by cedric.krier@b2ck.com
on 10 Jul 2013 at 1:48
See the test.odt file attached.
The templates expects a dictionnary of the form:
objects = [{
'dict': {
'1': ['a', 'b', 'c'],
'2': ['a', 'b', 'c'],
}
}]
Original comment by laur...@bioecoforests.com
on 10 Jul 2013 at 2:32
Attachments:
As we have to generate valid XML, we have to remove the genshi instruction from
within the first common ancestor between the starting instruction and the
closing.
So it impossible to support your case.
Original comment by cedric.krier@b2ck.com
on 10 Jul 2013 at 2:53
Original issue reported on code.google.com by
laur...@bioecoforests.com
on 8 Jul 2013 at 4:54