Ignore extra returns in Subrip parsing
This commit is contained in:
parent
5c0745cedf
commit
4b69fad6b7
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user