Commit 22bf672d authored by Yay295's avatar Yay295

fix empty lines being let through after splitting a line

parent b61ad086
......@@ -2311,6 +2311,9 @@ let SubtitleManager = (function() {
megablock += currblock;
}
// Remove pieces that have no text.
pieces = pieces.filter(piece => piece.replace(/{[^}]*}/g,""));
// Convert piece text into a NewLinePiece.
let pieceNum = 0, newLine = pieces.map(piece => NewLinePiece(this, combineAdjacentBlocks(piece), ++pieceNum));
newLine.shattered = false;
......
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 to comment