From 613237fd51368bcc231dfe99097e73b96b4296de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 7 Jan 2009 12:31:53 +0100 Subject: [PATCH] Don't strip nor replace '\n' when searching translation for issue732 --- trytond/ir/translation.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index e646f5b492..fdb39272e0 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -241,7 +241,6 @@ class Translation(OSV, Cacheable): return trans if source: - source = source.strip().replace('\n',' ') cursor.execute('SELECT value ' \ 'FROM ir_translation ' \ 'WHERE lang = %s ' \ @@ -299,7 +298,6 @@ class Translation(OSV, Cacheable): if clause: clause += ' OR ' if source: - source = source.strip().replace('\n',' ') clause += '(lang = %s ' \ 'AND type = %s ' \ 'AND name = %s ' \