diff options
Diffstat (limited to '')
-rw-r--r-- | src/new/chapter.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/new/chapter.rs b/src/new/chapter.rs index 887855b..fcc075d 100644 --- a/src/new/chapter.rs +++ b/src/new/chapter.rs @@ -7,7 +7,7 @@ use crate::{ file_tree::{FileTree, GeneratedFile}, }; -use super::MangledName; +use super::{replacement::untemplatize_chapter, MangledName}; pub struct ChapterName { name: MangledName, @@ -125,10 +125,7 @@ fn new_chapter_file( project_root: &Path, last_chapter_number: u32, ) -> GeneratedFile { - let chapter_text = config - .templates - .chapter - .replace("REPLACEMENT_CHAPTER", &name); + let chapter_text = untemplatize_chapter(&config.templates.chapter, &name); GeneratedFile::new( project_root |