From 6d2638e91f1cf54f7d6349941ec13b20685c8586 Mon Sep 17 00:00:00 2001 From: Paco8 <5084042+Paco8@users.noreply.github.com> Date: Sat, 4 Dec 2021 16:31:17 +0100 Subject: [PATCH] Version 0.3.7 --- Changelog.md | 10 ++++++++++ src/ttml2ssa.py | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index b0cbb57..d78c61e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,15 @@ # Changelog +## [0.3.7] - 2021-12-04 + * Fix end of line when saving on Windows. + +## [0.3.6] - 2021-11-15 + * Support timestamps without hour in vtt files. + +## [0.3.5] - 2021-09-24 + * Fix parsing frameRateMultiplier. + * Set the left and right margin to 0. + ## [0.3.4] - 2021-03-20 * Fix for Arabic in Amazon subtitles. * Remove the `` tags from srt and vtt output. diff --git a/src/ttml2ssa.py b/src/ttml2ssa.py index 6942979..e9ad792 100644 --- a/src/ttml2ssa.py +++ b/src/ttml2ssa.py @@ -25,7 +25,7 @@ class Ttml2Ssa(object): - VERSION = '0.3.6' + VERSION = '0.3.7' TIME_BASES = [ 'media', @@ -628,7 +628,7 @@ def write2file(self, output): else: res = self.generate_srt() - with io.open(output, 'w', encoding=output_encoding) as handle: + with io.open(output, 'w', encoding=output_encoding, newline='') as handle: handle.write(res) def _read_file(self, filename, encoding=None):