escape linefeeds in grid fields
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3010 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
16a3212f7a
commit
720dda3627
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ class GridFieldInstance(ListFieldInstance):
|
||||||
return value
|
return value
|
||||||
# TODO: marshall values!
|
# TODO: marshall values!
|
||||||
v = value or []
|
v = value or []
|
||||||
|
for row in v:
|
||||||
|
for k in row:
|
||||||
|
row[k] = row[k].replace('\n', '\\n')
|
||||||
empty = {}
|
empty = {}
|
||||||
for fi in self.columnFieldInstances:
|
for fi in self.columnFieldInstances:
|
||||||
default = fi.default
|
default = fi.default
|
||||||
|
|
Loading…
Add table
Reference in a new issue