summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-html/lib/summary.js
diff options
context:
space:
mode:
authorSoreine <soreine.plume@gmail.com>2016-06-10 15:57:15 +0200
committerSamy Pessé <samypesse@gmail.com>2016-12-22 12:32:21 +0100
commit1c663121313b7597e2f1fd403d6e4e9e56153acd (patch)
treea0ea661a8d2b674dc5caa7b1e5b88394272d37e8 /packages/gitbook-html/lib/summary.js
parent22ea09d9a6e6a56eefd508015b475d84999b01de (diff)
downloadgitbook-1c663121313b7597e2f1fd403d6e4e9e56153acd.zip
gitbook-1c663121313b7597e2f1fd403d6e4e9e56153acd.tar.gz
gitbook-1c663121313b7597e2f1fd403d6e4e9e56153acd.tar.bz2
Fix last empty part not parsed
Diffstat (limited to 'packages/gitbook-html/lib/summary.js')
-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;
}