mirror of
https://github.com/lise-henry/crowbook
synced 2024-05-23 21:36:15 +02:00
fix typo odt feature
This commit is contained in:
parent
4a7a433da6
commit
2a698eb40a
|
@ -67,7 +67,7 @@ pub mod epub3 {
|
|||
pub static TITLE: &str = include_str!("../../templates/epub3/titlepage.xhtml");
|
||||
}
|
||||
|
||||
#[cfg(features = "odt")]
|
||||
#[cfg(feature = "odt")]
|
||||
pub mod odt {
|
||||
pub static CONTENT: &str = include_str!("../../templates/odt/content.xml");
|
||||
pub static ODT: &[u8] = include_bytes!("../../templates/odt/template.odt");
|
||||
|
|
|
@ -106,7 +106,7 @@ This is forbidden because we are supposed \
|
|||
}
|
||||
|
||||
/// Unzip a file and deletes it afterwards
|
||||
#[cfg(features = "odt")]
|
||||
#[cfg(feature = "odt")]
|
||||
pub fn unzip(&mut self, file: &str) -> Result<()> {
|
||||
let output = Command::new("unzip")
|
||||
.current_dir(&self.path)
|
||||
|
@ -188,7 +188,7 @@ This is forbidden because we are supposed \
|
|||
}
|
||||
|
||||
/// zip all files in zipper's tmp dir to a given file name and write to odt file
|
||||
#[cfg(features = "odt")]
|
||||
#[cfg(feature = "odt")]
|
||||
pub fn generate_odt(&mut self, command_name: &str, odt_file: &mut dyn Write) -> Result<String> {
|
||||
let mut command = Command::new(command_name);
|
||||
command.current_dir(&self.path);
|
||||
|
|
Loading…
Reference in New Issue