fix path used for finding partials

This commit is contained in:
Peter Sooley 2021-12-31 17:11:21 -05:00
parent 68a5c09fdf
commit fe9e09e57b
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ impl Preprocessor for LinkPreprocessor {
book.for_each_mut(|section: &mut BookItem| { book.for_each_mut(|section: &mut BookItem| {
if let BookItem::Chapter(ref mut ch) = *section { if let BookItem::Chapter(ref mut ch) = *section {
if let Some(ref chapter_path) = ch.path { if let Some(ref chapter_path) = ch.source_path {
let base = chapter_path let base = chapter_path
.parent() .parent()
.map(|dir| src_dir.join(dir)) .map(|dir| src_dir.join(dir))