From 7082f1f3b3571e77701c3c87f78e3087db40f1b3 Mon Sep 17 00:00:00 2001 From: qwq233 Date: Tue, 8 Mar 2022 16:50:01 +0800 Subject: [PATCH] fix: hiddenInContent display error Signed-off-by: qwq233 --- build.gradle.kts | 2 +- src/main/java/top/qwq2333/generate/XmlContent.kt | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5b5ec1a..d1e6adb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,7 +30,7 @@ plugins { } group = "top.qwq2333" -version = "1.0" +version = "1.0.1" repositories { mavenCentral() diff --git a/src/main/java/top/qwq2333/generate/XmlContent.kt b/src/main/java/top/qwq2333/generate/XmlContent.kt index ccd44fd..96d13e6 100644 --- a/src/main/java/top/qwq2333/generate/XmlContent.kt +++ b/src/main/java/top/qwq2333/generate/XmlContent.kt @@ -261,13 +261,11 @@ object XmlContent { val item = manifest.addElement("item") item.addAttribute("id", it.id) if (it.type == Defines.text) { - if (!it.hiddenInContent) - itemList.add(it.id) + itemList.add(it.id) item.addAttribute("media-type", "application/xhtml+xml") item.addAttribute("href", "Text/${it.id}.xhtml") } else if (it.type == Defines.image) { - if (!it.hiddenInContent) - itemList.add(it.id) + itemList.add(it.id) item.addAttribute("media-type", "application/xhtml+xml") item.addAttribute("href", "Text/${it.id}.xhtml")