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

Fix a bug in html_single when it one_chapter is set to true

This commit is contained in:
Lise Henry 2023-08-11 01:41:14 +02:00
parent 6df67ded03
commit 3d734c9ff6

View File

@ -277,6 +277,7 @@ impl<'a> HtmlSingleRenderer<'a> {
.into(),
);
data.insert("style".into(), css.into());
data.insert("script".into(), js.into()); // Need to override this for html_single
data.insert(
"print_style".into(),
self.html.book.get_template("html.css.print").unwrap().into(),