mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user