aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/epub.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/epub.rs b/src/epub.rs
index fa88234..7357cda 100644
--- a/src/epub.rs
+++ b/src/epub.rs
@@ -250,7 +250,8 @@ fn epub2(doc: Document, nav: &mut HashMap<String, String>) {
.text()
.unwrap()
.to_string();
- nav.insert(path, text);
+ // TODO subsections
+ nav.entry(path).or_insert(text);
});
}
fn epub3(doc: Document, nav: &mut HashMap<String, String>) {