Commit a2e7a860 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a whitespace between each text element.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41675 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4771cc37
......@@ -13,7 +13,8 @@ class xml_to_text:
return self.__name__
def convert(self, data, cache, **kw):
out = ''.join(etree.fromstring(data).itertext()).encode('utf-8')
text_list = etree.fromstring(data).itertext()
out = ' '.join([text for text in text_list if text])
cache.setData(out)
return cache
......
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