vtt2ass: Fix parsing error
This commit is contained in:
parent
a777b26517
commit
8ccb1301d0
1 changed files with 2 additions and 2 deletions
|
|
@ -82,8 +82,8 @@ function parseStyle(stylegroup: string, line: string, style: any) {
|
|||
for (const s of line.split(';')) {
|
||||
if (s == '') continue;
|
||||
const st = s.trim().split(':');
|
||||
st[0] = st[0].trim();
|
||||
st[1] = st[1].trim();
|
||||
if (st[0]) st[0] = st[0].trim();
|
||||
if (st[1]) st[1] = st[1].trim();
|
||||
let cl, arr, transformed_str;
|
||||
switch (st[0]) {
|
||||
case 'font-family':
|
||||
|
|
|
|||
Loading…
Reference in a new issue