refactor: 优化导出格式
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user