We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9115c61 commit ba922d8Copy full SHA for ba922d8
src/main/kotlin/myaa/subkt/tasks/asstasks.kt
@@ -168,6 +168,12 @@ open class Merge : ASSTask() {
168
@get:Input
169
@get:Optional
170
val syncTargetTime = project.objects.property<Duration>()
171
+
172
+ /**
173
+ * Specifies whether to ignore all styles from associated files.
174
+ */
175
+ @get:Input
176
+ val removeStyles = defaultProperty(false)
177
}
178
179
/**
@@ -346,6 +352,10 @@ open class Merge : ASSTask() {
346
352
line.end += spec.shiftBy.get()
347
353
348
354
355
+ if (spec.removeStyles.get()) {
356
+ ass.styles.lines.clear()
357
+ }
358
349
359
spec.syncTargetLine.orNull?.let {
350
360
targetLineSpecs.add(it)
351
361
0 commit comments