diff --git a/doc/doc.js b/doc/doc.js index 00e8abd1ee..058c5ec9c7 100644 --- a/doc/doc.js +++ b/doc/doc.js @@ -23,6 +23,10 @@ NodeDoc.generateToc = function() cur_level = this.tagName.substr(1, 1); + if (last_level != 0 && cur_level <= last_level) { + html.push("") + } + if (cur_level > last_level) { html.push(''); + html.push(''); var $toc = $('#toc').append(html.join('')).find('ul li ul').each(function() { @@ -175,4 +175,4 @@ NodeDoc.setupSmoothScrolling = function() } }); }; -NodeDoc.init(); \ No newline at end of file +NodeDoc.init();