Don't strip nor replace '\n' when searching translation for issue732

This commit is contained in:
Cédric Krier committed 2009-01-07 12:31:53 +01:00
1 parent 24205df978
commit 613237fd51
1 file changed
-2
-2
View File
@@ -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 ' \