Commit e13e23e3 by ojw28

Merge pull request #776 from IanDBird/srt-fix

Ignore extra returns in Subrip parsing
parents 5c0745ce 4b69fad6
......@@ -58,6 +58,10 @@ public final class SubripParser implements SubtitleParser {
String currentLine;
while ((currentLine = reader.readLine()) != null) {
// Skip blank lines.
if (currentLine.length() == 0)
continue;
// Parse the numeric counter as a sanity check.
try {
Integer.parseInt(currentLine);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment