Tiny whitespace changes
This commit is contained in:
parent
b7aa78c3c0
commit
deab3ba751
|
@ -49,7 +49,6 @@ impl HtmlHandlebars {
|
||||||
content = helpers::playpen::render_playpen(&content, p);
|
content = helpers::playpen::render_playpen(&content, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Render markdown using the pulldown-cmark crate
|
|
||||||
content = utils::render_markdown(&content);
|
content = utils::render_markdown(&content);
|
||||||
print_content.push_str(&content);
|
print_content.push_str(&content);
|
||||||
|
|
||||||
|
@ -58,6 +57,7 @@ impl HtmlHandlebars {
|
||||||
ch.path
|
ch.path
|
||||||
.to_str()
|
.to_str()
|
||||||
.ok_or_else(|| io::Error::new(io::ErrorKind::Other, "Could not convert path to str"))?;
|
.ok_or_else(|| io::Error::new(io::ErrorKind::Other, "Could not convert path to str"))?;
|
||||||
|
|
||||||
data.insert("path".to_owned(), json!(path));
|
data.insert("path".to_owned(), json!(path));
|
||||||
data.insert("content".to_owned(), json!(content));
|
data.insert("content".to_owned(), json!(content));
|
||||||
data.insert("chapter_title".to_owned(), json!(ch.name));
|
data.insert("chapter_title".to_owned(), json!(ch.name));
|
||||||
|
|
Loading…
Reference in New Issue