From a69ba7a733a5b918e0fb58e9ba42d02ed8cccdec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 18 Dec 2008 00:55:51 +0100 Subject: [PATCH] Add missing strip and replace '\n' for source --- trytond/ir/translation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trytond/ir/translation.py b/trytond/ir/translation.py index fe4615c67d..ad2174f6ed 100644 --- a/trytond/ir/translation.py +++ b/trytond/ir/translation.py @@ -271,6 +271,7 @@ class Translation(OSV, Cacheable): if clause: clause += ' OR ' if source: + source = source.strip().replace('\n',' ') clause += '(lang = %s ' \ 'AND type = %s ' \ 'AND name = %s ' \