Skip to content

Commit

Permalink
tools: fix json doc generation
Browse files Browse the repository at this point in the history
Current processList function in tools/doc/json.js does not recognise
{"type":"loose_item_start"}. Fix it.

PR-URL: #5943
Fixes: #5942
Reviewed-By: Roman Reiss <[email protected]>
Reviewed-By: Robert Lindstädt <[email protected]>
  • Loading branch information
firedfox authored and evanlucas committed Mar 31, 2016
1 parent 77bed26 commit cb676cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb676cf

Please sign in to comment.