From a44aad5889bcd85d7bdd0be9c54f9111da917cf5 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sun, 8 Mar 2026 11:04:55 +0300 Subject: Add newline between wrapper and chapter content This makes it easier to identify diff lines caused by quick_xml from those of the wrapper. --- src/xml.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xml.rs') diff --git a/src/xml.rs b/src/xml.rs index 058cb1b..7902aa6 100644 --- a/src/xml.rs +++ b/src/xml.rs @@ -62,6 +62,7 @@ pub fn build_epub_chapter( // Write wrapper prefix to output first. out.write_all(wrapper_prefix.as_bytes())?; + out.write_all(b"\n")?; // Setup the XML Reader and Writer. let mut reader = Reader::from_reader(fragment_input); @@ -109,6 +110,7 @@ pub fn build_epub_chapter( } // Finish by flushing wrapper suffix to output. + out.write_all(b"\n")?; out.write_all(wrapper_suffix.as_bytes())?; Ok(()) -- cgit v1.2.3-70-g09d2