1
0
Fork 0
mirror of https://github.com/lise-henry/crowbook synced 2024-05-09 11:46:11 +02:00

Modified the create example

This commit is contained in:
Elisabeth Henry 2017-07-14 18:51:13 +02:00
parent 160f9a34dd
commit 54eca16b65

View File

@ -93,16 +93,21 @@ pub fn create_book(matches: &ArgMatches) -> ! {
title: Your title
lang: en
## Output formats
# Uncomment and fill to generate files
# output.html: some_file.html
# output.epub: some_file.epub
# output.pdf: some_file.pdf
# Uncomment and fill to set cover image (for Epub)
# Or uncomment the following to generate PDF, HTML and EPUB files based on this file's name
# output: [pdf, epub, html]
# Uncomment and fill to set cover image (for EPUB)
# cover: some_cover.png\n").as_bytes())
.unwrap();
}
f.write_all(lformat!("\n# List of chapters\n").as_bytes()).unwrap();
f.write_all(lformat!("\n## List of chapters\n").as_bytes()).unwrap();
for file in values {
f.write_all(format!("+ {}\n", file).as_bytes()).unwrap();
}