diff options
author | Soreine <soreine.plume@gmail.com> | 2016-06-10 15:57:15 +0200 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-12-22 12:32:21 +0100 |
commit | 1c663121313b7597e2f1fd403d6e4e9e56153acd (patch) | |
tree | a0ea661a8d2b674dc5caa7b1e5b88394272d37e8 /packages/gitbook-html/lib/summary.js | |
parent | 22ea09d9a6e6a56eefd508015b475d84999b01de (diff) | |
download | gitbook-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-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; } |