Commit a284aa6b authored by Hugo H. Maia Vieira's avatar Hugo H. Maia Vieira

Tiny refactoring to improve performance


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@41679 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2691dedf
......@@ -180,7 +180,7 @@ class OOGranulate(object):
logger.error("Unable to find paragraph %s at paragraph list." % paragraph_id)
return None
text = ''.join(paragraph.xpath('.//text()', namespaces=paragraph.nsmap))
text = ''.join(paragraph.itertext())
if TEXT_ATTRIB_STYLENAME not in paragraph.attrib.keys():
logger.error("Unable to find %s attribute at paragraph %s " % \
......
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