Commit 6cbfec0d authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix(transcript): add condition when concatenating sub text to prevent second line duplication

parent 28a31ca0
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -78,13 +78,10 @@ class TranscriptParser
                        $sub->text = trim($subText);
                        $subText = '';
                        $state = SRT_STATE_SUBNUMBER;

                        $subs[] = $sub;
                    } else {
                        if ($subText !== '') {
                    } elseif ($subText !== '') {
                        $subText .= PHP_EOL . $line;
                        }

                    } else {
                        $subText .= $line;
                    }