Add missing strip and replace '\n' for source
This commit is contained in:
1 parent
c9898dac93
commit
a69ba7a733
1 file changed
+1
@@ -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 ' \
|
||||
|
||||
Reference in new issue
Block a user