Merge pull request #248 from mthh/master

Fix alignement of chapters with three digit numbering
This commit is contained in:
Mathieu David 2017-04-14 20:25:21 +02:00 committed by GitHub
commit ef402c16e8
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ impl HelperDef for RenderToc {
} }
let level = if let Some(s) = item.get("section") { let level = if let Some(s) = item.get("section") {
s.len() / 2 s.matches(".").count()
} else { } else {
1 1
}; };