fix render of block fully located in a single cell
Created originally on Bitbucket by sir_sigurd (Sergey Fedoseev)
Was already merged in Bitbucket before import, marked as merged by the import user
I get this error if 'for' block is fully located in a single cell:
#!python
Traceback (most recent call last):
File "/home/sergey/tmp/cell.py", line 4, in <module>
t.render({'lines': [1, 2, 3]})
File "/home/sergey/tmp/py3o.template/py3o/template/main.py", line 407, in render
for status in self.render_flow(data):
File "/home/sergey/tmp/py3o.template/py3o/template/main.py", line 370, in render_flow
closing_tags[id(link)][1]
File "/home/sergey/tmp/py3o.template/py3o/template/main.py", line 180, in __handle_link
move_siblings(opening_row, closing_row, genshi_node)
File "/home/sergey/tmp/py3o.template/py3o/template/main.py", line 38, in move_siblings
old_.remove(end)
File "lxml.etree.pyx", line 872, in lxml.etree._Element.remove (src/lxml/lxml.etree.c:44084)
ValueError: Element is not a child of this node.