Browse Source

doc: fix order of end tags of list after heading

Current html result of a list after heading is <div
class="signature"><ul>...</div></ul>. Correct it to <div
class="signature"><ul>...</ul></div>.

PR-URL: https://github.com/nodejs/node/pull/5874
Fixes: https://github.com/nodejs/node/issues/5873
Reviewed-By: Roman Reiss <me@silverwind.io>
v4.x
firedfox 9 years ago
committed by Myles Borins
parent
commit
8c24bd25a6
  1. 2
      tools/doc/html.js

2
tools/doc/html.js

@ -159,11 +159,11 @@ function parseLists(input) {
}
if (tok.type === 'list_end') {
depth--;
output.push(tok);
if (depth === 0) {
state = null;
output.push({ type:'html', text: '</div>' });
}
output.push(tok);
return;
}
if (tok.text) {

Loading…
Cancel
Save