summary refs log tree commit diff stats
path: root/src/new
diff options
context:
space:
mode:
Diffstat (limited to 'src/new')
-rw-r--r--src/new/section.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/new/section.rs b/src/new/section.rs
index 86d347c..bfa2b2c 100644
--- a/src/new/section.rs
+++ b/src/new/section.rs
@@ -39,13 +39,13 @@ pub fn generate_new_section(
             ),
         );
 
-    let new_section_file = GeneratedFile::new(
+    file_tree.add_file(GeneratedFile::new_clobber(
         chapter_root
             .join("sections")
             .join(format!("{}.tex", MangledName::new(&name))),
         new_section_text,
-    );
-    file_tree.add_file(new_section_file);
+        false,
+    ));
 
     let chapter_file_path = chapter_root.join("chapter.tex");
     let mut chapter_file_text = fs::read_to_string(&chapter_file_path).with_context(|| {