Commit 9211b0dc authored by Nicolas Delaby's avatar Nicolas Delaby

This render is also use for listField

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31151 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1545448e
......@@ -478,7 +478,12 @@ class TextAreaWidget(Widget):
if attr_dict is None:
attr_dict = {}
text_node = Element('{%s}%s' % (TEXT_URI, local_name), nsmap=NSMAP)
value = field.get_value('default').decode('utf-8')
value = field.get_value('default')
if isinstance(value, (str, unicode)):
if isinstance(value, str):
value = value.decode('utf-8')
value = [value]
value = '\n'.join(value)
value.replace('\r', '')
def replaceCharsByNode(match_object):
#global text_node
......
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