diff options
Diffstat (limited to 'packages/gitbook-html/lib/summary.js')
-rwxr-xr-x | packages/gitbook-html/lib/summary.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/gitbook-html/lib/summary.js b/packages/gitbook-html/lib/summary.js index f458d1d..4b263c9 100755 --- a/packages/gitbook-html/lib/summary.js +++ b/packages/gitbook-html/lib/summary.js @@ -97,6 +97,11 @@ function findParts($parent, $) { } }); + // Last part might be empty + if (previousPart !== null) { + parts.push(previousPart); + } + return parts; } |