diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index ff50f7b..e817c04 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -16,6 +16,6 @@ repositories { } dependencies { - implementation("org.jsoup:jsoup:1.13.1") + implementation("org.jsoup:jsoup:1.15.3") implementation("io.unthrottled.doki.build.jvm:doki-build-source-jvm:88.0.4") } diff --git a/buildSrc/src/main/kotlin/PatchHTML.kt b/buildSrc/src/main/kotlin/PatchHTML.kt index 9fcde27..2eab5a3 100644 --- a/buildSrc/src/main/kotlin/PatchHTML.kt +++ b/buildSrc/src/main/kotlin/PatchHTML.kt @@ -24,7 +24,7 @@ open class PatchHTML : DefaultTask() { .forEach { image -> image.attr("width", "700") - .parent().insertChildren(0, Element("br")) + .parent()?.insertChildren(0, Element("br")) } Files.newBufferedWriter(htmlFileToPatch, StandardOpenOption.TRUNCATE_EXISTING)