summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Simianer <patrick@lilt.com>2020-06-30 12:28:21 +0200
committerPatrick Simianer <patrick@lilt.com>2020-06-30 12:28:21 +0200
commit4732fb3be94ba3f88b18295cf1c00e8c616eec73 (patch)
tree10a75019fd0dee5890feefb1bb309c3acd375042
parentfc74944003b5b137c7cf806deee6d305fa00cf06 (diff)
tmx-extract.py: replace newlines
-rwxr-xr-xtmx-extract.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmx-extract.py b/tmx-extract.py
index e8ec959..00f18f5 100755
--- a/tmx-extract.py
+++ b/tmx-extract.py
@@ -54,7 +54,7 @@ class TMXHandler(ContentHandler):
def endElement(self, name):
if name == 'tu' and self.pair == self.cur_pair:
for lang in self.cur_pair:
- self.files[lang].write("{}\n".format(self.seg[lang].strip()))
+ self.files[lang].write("{}\n".format(self.seg[lang].replace("\n", " ").strip()))
if __name__ == "__main__":