Fix hard-coded new line separator

This commit is contained in:
Augusto Gunsch 2021-11-14 18:50:35 -03:00
parent 15769a7f3a
commit fb79ba0616
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = fsub name = fsub
version = 0.0.3 version = 0.0.4
author = Augusto Lenz Gunsch author = Augusto Lenz Gunsch
author_email = augustogunsch@tutanota.com author_email = augustogunsch@tutanota.com
description = CLI SubRip editor description = CLI SubRip editor

View File

@ -91,10 +91,10 @@ class Subtitle:
return False return False
def __repr__(self): def __repr__(self):
return '{}\n{} --> {}\n{}'.format( return '{}{}{} --> {}{}{}'.format(
self.number, self.number, os.linesep,
self.time_start, self.time_end, self.time_start, self.time_end,
os.linesep.join(self.content) os.linesep, os.linesep.join(self.content)
) )