Skip to content

Commit

Permalink
doc: fix order of end tags of list after heading
Browse files Browse the repository at this point in the history
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: #5874
Fixes: #5873
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
firedfox authored and Myles Borins committed Mar 30, 2016
1 parent 7c83702 commit 8c24bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c24bd2

Please sign in to comment.