[gen] Bugfix in generation of back reference for predefined Refs from model.py; bugfix while editing XHTML fields from class model.py::Page; bugfixes in the XhtmlCleaner.

This commit is contained in:
Gaetan Delannay 2013-01-11 17:16:36 +01:00
parent b76af3e0c2
commit 27197f5b9d
4 changed files with 54 additions and 34 deletions

View file

@ -1245,7 +1245,7 @@ class String(Type):
# (ie for image size when images are resized). So in this case we
# can't remove style-related information.
try:
value = XhtmlCleaner().clean(value, keepStyles=self.richText)
value = XhtmlCleaner(keepStyles=self.richText).clean(value)
except XhtmlCleaner.Error, e:
# Errors while parsing p_value can't prevent the user from
# storing it.