From 06858d0fe530bc04d8697b9b91409e395de0300f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com> Date: Thu, 29 May 2008 07:31:10 +0000 Subject: [PATCH] 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 --- product/ERP5Form/FormulatorPatch.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/product/ERP5Form/FormulatorPatch.py b/product/ERP5Form/FormulatorPatch.py index 755907e94e..ecd10174bb 100644 --- a/product/ERP5Form/FormulatorPatch.py +++ b/product/ERP5Form/FormulatorPatch.py @@ -642,16 +642,14 @@ def SingleItemsWidget_render_items(self, field, key, value, REQUEST): if item_value == value and not selected_found: - rendered_item = self.render_selected_item(escape(ustr(item_text))\ - .replace(' ', ' '), + rendered_item = self.render_selected_item(escape(ustr(item_text)), item_value, key, css_class, extra_item) selected_found = 1 else: - rendered_item = self.render_item(escape(ustr(item_text))\ - .replace(' ', ' '), + rendered_item = self.render_item(escape(ustr(item_text)), item_value, key, css_class, @@ -716,7 +714,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST): if item_value in value: rendered_item = self.render_selected_item( - escape(ustr(item_text)).replace(' ', ' '), + escape(ustr(item_text)), escape(ustr(item_value)), key, css_class, @@ -726,7 +724,7 @@ def MultiItemsWidget_render_items(self, field, key, value, REQUEST): selected_found[index] = 1 else: rendered_item = self.render_item( - escape(ustr(item_text)).replace(' ', ' '), + escape(ustr(item_text)), escape(ustr(item_value)), key, css_class, -- 2.30.9