Skip to content

Commit be0cce9

Browse files
committed
0.1.16
1 parent e63e68f commit be0cce9

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

dist/ass-compiler.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,9 +1084,10 @@
10841084
.map(function (slice, idx) {
10851085
var sliceCopy = JSON.parse(JSON.stringify(slice));
10861086
var tag = {};
1087-
if (idx) {
1087+
if (idx || slice.style !== dia.style) {
10881088
tag.r = slice.style === dia.style ? '' : slice.style;
1089-
} else {
1089+
}
1090+
if (!idx) {
10901091
if (style.Alignment !== dia.alignment) {
10911092
tag.an = dia.alignment;
10921093
}

dist/ass-compiler.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/ass-compiler.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,9 +1078,10 @@ function decompileText(dia, style) {
10781078
.map(function (slice, idx) {
10791079
var sliceCopy = JSON.parse(JSON.stringify(slice));
10801080
var tag = {};
1081-
if (idx) {
1081+
if (idx || slice.style !== dia.style) {
10821082
tag.r = slice.style === dia.style ? '' : slice.style;
1083-
} else {
1083+
}
1084+
if (!idx) {
10841085
if (style.Alignment !== dia.alignment) {
10851086
tag.an = dia.alignment;
10861087
}

dist/esm/ass-compiler.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ass-compiler",
3-
"version": "0.1.15",
3+
"version": "0.1.16",
44
"type": "module",
55
"description": "Parses and compiles ASS subtitle format to easy-to-use data structure.",
66
"main": "dist/esm/ass-compiler.js",

0 commit comments

Comments
 (0)