Commit 4b69fad6 by Ian Bird

Ignore extra returns in Subrip parsing

parent 5c0745ce
...@@ -58,6 +58,10 @@ public final class SubripParser implements SubtitleParser { ...@@ -58,6 +58,10 @@ public final class SubripParser implements SubtitleParser {
String currentLine; String currentLine;
while ((currentLine = reader.readLine()) != null) { while ((currentLine = reader.readLine()) != null) {
// Skip blank lines.
if (currentLine.length() == 0)
continue;
// Parse the numeric counter as a sanity check. // Parse the numeric counter as a sanity check.
try { try {
Integer.parseInt(currentLine); 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