Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a2dd848

Browse filesBrowse files
firedfoxMyles Borins
authored andcommitted
tools,doc: fix incomplete json produced by doctool
Doc tool produces incomplete json when it meets unordered lists that directly following a heading. Add a default case to processList function to handle the lists. PR-URL: #5966 Fixes: #1545 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
1 parent a40d0e8 commit a2dd848
Copy full SHA for a2dd848

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎tools/doc/json.js‎

Copy file name to clipboardExpand all lines: tools/doc/json.js
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,14 @@ function processList(section) {
260260
// event: each item is an argument.
261261
section.params = values;
262262
break;
263+
264+
default:
265+
if (section.list.length > 0) {
266+
section.desc = section.desc || [];
267+
for (var i = 0; i < section.list.length; i++) {
268+
section.desc.push(section.list[i]);
269+
}
270+
}
263271
}
264272

265273
// section.listParsed = values;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.