Skip to content

Commit

Permalink
fix: hiddenInContent display error
Browse files Browse the repository at this point in the history
Signed-off-by: qwq233 <[email protected]>
  • Loading branch information
qwq233 committed Mar 8, 2022
1 parent 01036e6 commit 7082f1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ plugins {
}

group = "top.qwq2333"
version = "1.0"
version = "1.0.1"

repositories {
mavenCentral()
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/top/qwq2333/generate/XmlContent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 7082f1f

Please sign in to comment.