Commit 5d59477b authored by Michal Čihař's avatar Michal Čihař

Remove newlines when using tmserver

parent 894b36e6
......@@ -69,7 +69,7 @@ class TMServerTranslation(MachineTranslation):
self.url,
urllib.quote(appsettings.SOURCE_LANGUAGE),
urllib.quote(language),
urllib.quote(text[:500].encode('utf-8')),
urllib.quote(text[:500].encode('utf-8').replace('\r', ' ')),
)
response = self.json_req(url)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment