From 96372ac9c1efa655d55dc4ecf3019d29f2753041 Mon Sep 17 00:00:00 2001 From: qwq233 Date: Tue, 8 Mar 2022 16:54:05 +0800 Subject: [PATCH] fix: hide hiddenInContent in content Signed-off-by: qwq233 --- src/main/java/top/qwq2333/generate/HtmlContent.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/top/qwq2333/generate/HtmlContent.kt b/src/main/java/top/qwq2333/generate/HtmlContent.kt index 46e59a1..2e0f343 100644 --- a/src/main/java/top/qwq2333/generate/HtmlContent.kt +++ b/src/main/java/top/qwq2333/generate/HtmlContent.kt @@ -106,6 +106,9 @@ object HtmlContent { fun genToCElement(list: List): String { val sb = StringBuilder() for (content in list) { + if (content.hiddenInContent){ + continue + } if (content.type == Defines.subcontent) { sb.append(genToCElement(content.content!!)) }