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 <[email protected]>
  • Loading branch information
firedfox authored and Myles Borins committed Mar 30, 2016
1 parent 3c1ed84 commit 5eb1dbf
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 5eb1dbf

Please sign in to comment.