diff options
| author | A Farzat <a@farzat.xyz> | 2026-03-08 11:04:55 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-03-08 11:04:55 +0300 |
| commit | a44aad5889bcd85d7bdd0be9c54f9111da917cf5 (patch) | |
| tree | e369a94d3ca23499a440c0963ade064092fae1cf /src/xml.rs | |
| parent | b83dfc5da6424fce7bda8c551303cc5bd91447e3 (diff) | |
| download | oreilly-epub-a44aad5889bcd85d7bdd0be9c54f9111da917cf5.tar.gz oreilly-epub-a44aad5889bcd85d7bdd0be9c54f9111da917cf5.zip | |
Add newline between wrapper and chapter content
This makes it easier to identify diff lines caused by quick_xml from
those of the wrapper.
Diffstat (limited to 'src/xml.rs')
| -rw-r--r-- | src/xml.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -62,6 +62,7 @@ pub fn build_epub_chapter<R: BufRead, W: Write>( // 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<R: BufRead, W: Write>( } // Finish by flushing wrapper suffix to output. + out.write_all(b"\n")?; out.write_all(wrapper_suffix.as_bytes())?; Ok(()) |
