Skip to content

Commit dd917bc

Browse files
committed
feat: 修正數字顯示
1 parent b1bb99c commit dd917bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/novel-epub/lib/txt2epub3.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/novel-epub/lib/txt2epub3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ export function create(options: IOptions, cache = {}): Bluebird<INovelEpubReturn
638638
});
639639
*/
640640

641-
console.info(`${source_idx + 1}${source_totals}`, volume_title, chapter_title)
641+
console.info(`${(source_idx + 1).toString().padStart(4, '0')}${source_totals.toString().padStart(4, '0')}`, volume_title, chapter_title)
642642
}
643643

644644
let chapter = new EpubMaker.Section(EnumEpubTypeName.CHAPTER, makeChapterID(temp.count_idx++), {

0 commit comments

Comments
 (0)