diff options
author | firedfox <wangyang0123@gmail.com> | 2016-03-29 18:42:17 +0800 |
---|---|---|
committer | silverwind <me@silverwind.io> | 2016-03-30 17:52:49 +0200 |
commit | 05b3a0b22cfc91106baf07d38d287db91fdbe3ba (patch) | |
tree | 0c2821a9dcdb89915d511499cd1d425710164c36 /tools | |
parent | 761787be9156758a3300f2aac50f92345055281c (diff) | |
download | node-new-05b3a0b22cfc91106baf07d38d287db91fdbe3ba.tar.gz |
tools: fix json doc generation
Current processList function in tools/doc/json.js does not recognise
{"type":"loose_item_start"}. Fix it.
PR-URL: https://github.com/nodejs/node/pull/5943
Fixes: https://github.com/nodejs/node/issues/5942
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/json.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/json.js b/tools/doc/json.js index 299c8ed9fd..a80c7efb1f 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -183,7 +183,7 @@ function processList(section) { list.forEach(function(tok) { var type = tok.type; if (type === 'space') return; - if (type === 'list_item_start') { + if (type === 'list_item_start' || type === 'loose_item_start') { var n = {}; if (!current) { values.push(n); |