summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/lib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-html/lib')
-rwxr-xr-xpackages/gitbook-html/lib/summary.js5
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;
}