Commit f9ce1994 authored by Nicolas Delaby's avatar Nicolas Delaby

get index from parent_node and clear tail attribute

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31155 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 58fc85af
......@@ -934,8 +934,9 @@ class ODTStrategy(ODFStrategy):
if not reference_list:
return element_tree
referenced_node = reference_list[0]
referenced_node.tail = None
parent_node = referenced_node.getparent()
text_reference_position = int(parent_node.xpath('count(text:reference-mark-start/preceding-sibling::*)', namespaces=element_tree.nsmap))
text_reference_position = parent_node.index(referenced_node)
#Delete all contents between <text:reference-mark-start/> and <text:reference-mark-end/>
#Try to fetch style-name
......
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