Skip to content

Commit c2019f6

Browse files
committed
Separate timecode text entries with blank lines
1 parent 0b7b386 commit c2019f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/timecodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _fmt_short(seconds: float) -> str:
7676

7777

7878
def format_txt(segments: List[Dict[str, Any]]) -> str:
79-
return "\n".join(f"[{_fmt_short(seg['start'])}] {seg['text']}" for seg in segments)
79+
return "\n\n".join(f"[{_fmt_short(seg['start'])}] {seg['text']}" for seg in segments)
8080

8181

8282
def format_srt(segments: List[Dict[str, Any]]) -> str:

0 commit comments

Comments
 (0)