From 05b3a0b22cfc91106baf07d38d287db91fdbe3ba Mon Sep 17 00:00:00 2001 From: firedfox Date: Tue, 29 Mar 2016 18:42:17 +0800 Subject: [PATCH] tools: fix json doc generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Robert Lindstädt --- tools/doc/json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);