Commit 06858d0f authored by Aurel's avatar Aurel

don't replace white-space by non breakable space as it now managed in css


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21205 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c483cc6d
...@@ -642,16 +642,14 @@ def SingleItemsWidget_render_items(self, field, key, value, REQUEST): ...@@ -642,16 +642,14 @@ def SingleItemsWidget_render_items(self, field, key, value, REQUEST):
if item_value == value and not selected_found: if item_value == value and not selected_found:
rendered_item = self.render_selected_item(escape(ustr(item_text))\ rendered_item = self.render_selected_item(escape(ustr(item_text)),
.replace(' ', ' '),
item_value, item_value,
key, key,
css_class, css_class,
extra_item) extra_item)
selected_found = 1 selected_found = 1
else: else:
rendered_item = self.render_item(escape(ustr(item_text))\ rendered_item = self.render_item(escape(ustr(item_text)),
.replace(' ', ' '),
item_value, item_value,
key, key,
css_class, css_class,
...@@ -716,7 +714,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST): ...@@ -716,7 +714,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST):
if item_value in value: if item_value in value:
rendered_item = self.render_selected_item( rendered_item = self.render_selected_item(
escape(ustr(item_text)).replace(' ', ' '), escape(ustr(item_text)),
escape(ustr(item_value)), escape(ustr(item_value)),
key, key,
css_class, css_class,
...@@ -726,7 +724,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST): ...@@ -726,7 +724,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST):
selected_found[index] = 1 selected_found[index] = 1
else: else:
rendered_item = self.render_item( rendered_item = self.render_item(
escape(ustr(item_text)).replace(' ', ' '), escape(ustr(item_text)),
escape(ustr(item_value)), escape(ustr(item_value)),
key, key,
css_class, css_class,
......
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