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:
parent
68e5742c25
commit
33ebd34808
3 changed files with 761 additions and 763 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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`);
|
||||||
|
|
Loading…
Reference in a new issue