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>
This commit is contained in:
parent
761787be91
commit
05b3a0b22c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user