From 51a1f813e951ccc08f22b0c822b4730936bf1b4e Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Mon, 23 Dec 2024 15:06:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/com/lanyuanxiaoyao/bookstore/Exporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/lanyuanxiaoyao/bookstore/Exporter.kt b/src/main/kotlin/com/lanyuanxiaoyao/bookstore/Exporter.kt index 11d29a9..fec036e 100644 --- a/src/main/kotlin/com/lanyuanxiaoyao/bookstore/Exporter.kt +++ b/src/main/kotlin/com/lanyuanxiaoyao/bookstore/Exporter.kt @@ -25,7 +25,7 @@ val defaultExporterTemplate = object : ExporterTemplate { override fun exportChapter(chapter: Chapter): ExporterItem { return ExporterItem( - name = "第${chapter.sequence}章${if (chapter.name.isNullOrBlank()) "" else "-${chapter.name}"}", + name = "第${chapter.sequence}章${if (chapter.name.isNullOrBlank()) "" else " ${chapter.name}"}", content = StringBuilder().apply { for (line in chapter.content.sortedBy { it.sequence }) { appendLine(line.text)