diff options
Diffstat (limited to 'tmx-extract.py')
-rwxr-xr-x | tmx-extract.py | 2 |
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__": |