[gen] Bugfixes.

This commit is contained in:
Gaetan Delannay 2015-03-12 08:44:14 +01:00
parent 934ca360cc
commit 727eec8a91
2 changed files with 5 additions and 5 deletions

View file

@ -656,7 +656,7 @@ class String(Field):
# Compute the successive changes that occurred on p_value
res = self.getDiffValue(obj, res, language)
elif self.format == String.TEXT:
if layoutType != 'edit':
if layoutType in ('view', 'cell'):
res = obj.formatText(res, format='html')
# If value starts with a carriage return, add a space; else, it will
# be ignored.