We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94f7507 commit a272f04Copy full SHA for a272f04
srt.go
@@ -34,7 +34,7 @@ func parseSrt(s string) []caption {
34
35
seq := strings.Trim(lines[i], "\r ")
36
if seq == "" {
37
- break
+ continue
38
}
39
40
_, err := strconv.Atoi(seq)
srt_test.go
@@ -33,6 +33,7 @@ func TestParseSrt(t *testing.T) {
33
"00:00:10,000 --> 00:00:11,000\n" +
"Subtitles By MrCool\n" +
"\n" +
+ "\n" + // NOTE make sure we allow slightly sloppy input
"3\n" +
"00:01:09,630 --> 00:01:11,005\n" +
"No ninja!\n"
0 commit comments