From 4732fb3be94ba3f88b18295cf1c00e8c616eec73 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 30 Jun 2020 12:28:21 +0200 Subject: tmx-extract.py: replace newlines --- tmx-extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__": -- cgit v1.2.3