1
0

refactor: 优化导出格式

This commit is contained in:
2024-12-23 15:06:45 +08:00
parent 3c6369b07d
commit 51a1f813e9

View File

@@ -25,7 +25,7 @@ val defaultExporterTemplate = object : ExporterTemplate {
override fun exportChapter(chapter: Chapter): ExporterItem { override fun exportChapter(chapter: Chapter): ExporterItem {
return 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 { content = StringBuilder().apply {
for (line in chapter.content.sortedBy { it.sequence }) { for (line in chapter.content.sortedBy { it.sequence }) {
appendLine(line.text) appendLine(line.text)