From fb79ba0616d088ccea5f5f2e447bea1126048a89 Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Sun, 14 Nov 2021 18:50:35 -0300 Subject: [PATCH] Fix hard-coded new line separator --- setup.cfg | 2 +- src/fsub/fsub.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 6b44b4e..9180ff0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = fsub -version = 0.0.3 +version = 0.0.4 author = Augusto Lenz Gunsch author_email = augustogunsch@tutanota.com description = CLI SubRip editor diff --git a/src/fsub/fsub.py b/src/fsub/fsub.py index 74f786d..167f47b 100755 --- a/src/fsub/fsub.py +++ b/src/fsub/fsub.py @@ -91,10 +91,10 @@ class Subtitle: return False def __repr__(self): - return '{}\n{} --> {}\n{}'.format( - self.number, + return '{}{}{} --> {}{}{}'.format( + self.number, os.linesep, self.time_start, self.time_end, - os.linesep.join(self.content) + os.linesep, os.linesep.join(self.content) )