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 ' \