Skip to content

Commit

Permalink
Version 0.3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Paco8 committed Dec 4, 2021
1 parent 18b4e58 commit 6d2638e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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 `<c></c>` tags from srt and vtt output.
4 changes: 2 additions & 2 deletions src/ttml2ssa.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

class Ttml2Ssa(object):

VERSION = '0.3.6'
VERSION = '0.3.7'

TIME_BASES = [
'media',
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6d2638e

Please # to comment.