From cf87245b6c121f5b35e1f6f60c1733e1f6d140be Mon Sep 17 00:00:00 2001 From: Zhou Wei Date: Thu, 7 Mar 2024 12:59:54 +0800 Subject: [PATCH] fixing #56 --- webvtt/writers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webvtt/writers.py b/webvtt/writers.py index 5ec551b..91c13d8 100644 --- a/webvtt/writers.py +++ b/webvtt/writers.py @@ -25,7 +25,7 @@ def write(self, captions, f): f.write('{}\n'.format(line_number)) f.write('{} --> {}\n'.format(self._to_srt_timestamp(caption.start_in_seconds), self._to_srt_timestamp(caption.end_in_seconds))) - f.writelines(['{}\n'.format(l) for l in caption.lines]) + f.write('{}\n'.format(caption.text)) f.write('\n') def _to_srt_timestamp(self, total_seconds):