1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

fix multiline in subtitles

This commit is contained in:
frost768 2023-04-23 18:44:16 +03:00
parent 68e5742c25
commit 33ebd34808
3 changed files with 761 additions and 763 deletions

View file

@ -32,7 +32,7 @@
"react-stickynode": "^4.1.0", "react-stickynode": "^4.1.0",
"react-transition-group": "^4.4.5", "react-transition-group": "^4.4.5",
"react-use": "^17.4.0", "react-use": "^17.4.0",
"subsrt-ts": "^2.1.0", "subsrt-ts": "frost768/subsrt-ts",
"unpacker": "^1.0.1" "unpacker": "^1.0.1"
}, },
"scripts": { "scripts": {

View file

@ -142,7 +142,6 @@ describe("subtitles", () => {
it("should parse multiline captions", ({ expect }) => { it("should parse multiline captions", ({ expect }) => {
const parsed = parseSubtitles(multilineSubtitlesTestVtt); const parsed = parseSubtitles(multilineSubtitlesTestVtt);
console.log(parsed[0].content, parsed[0].text);
expect(parsed[0].text).toBe(`- Test 1\n- Test 2\n- Test 3`); expect(parsed[0].text).toBe(`- Test 1\n- Test 2\n- Test 3`);
expect(parsed[1].text).toBe(`- Test 4`); expect(parsed[1].text).toBe(`- Test 4`);

1521
yarn.lock

File diff suppressed because it is too large Load diff