summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfiredfox <wangyang02@baidu.com>2016-03-03 16:18:09 +0800
committersilverwind <me@silverwind.io>2016-03-24 17:18:25 +0100
commit57a4dd9cc22101ff70b6a326ad95ee559aebf91f (patch)
treef7c3a55bafc9e8dcabcefba1ac7bcbf5d8729914 /tools
parent80ec0cc4d838460cdcae792627891040d3ee1091 (diff)
downloadandroid-node-v8-57a4dd9cc22101ff70b6a326ad95ee559aebf91f.tar.gz
android-node-v8-57a4dd9cc22101ff70b6a326ad95ee559aebf91f.tar.bz2
android-node-v8-57a4dd9cc22101ff70b6a326ad95ee559aebf91f.zip
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/html.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/html.js b/tools/doc/html.js
index 8de9f49987..327c9f080e 100644
--- a/tools/doc/html.js
+++ b/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) {