From b6dda9fa8e1c159412c177fb3cc0a55652091d35 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 4 Jan 2021 18:27:21 -0800 Subject: subsections --- src/epub.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/epub.rs') 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) { .text() .unwrap() .to_string(); - nav.insert(path, text); + // TODO subsections + nav.entry(path).or_insert(text); }); } fn epub3(doc: Document, nav: &mut HashMap) { -- cgit v1.2.3