Ignore extra returns in Subrip parsing

This commit is contained in:
Ian Bird 2015-09-09 11:56:10 +01:00
parent 5c0745cedf
commit 4b69fad6b7

View File

@ -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);