tools,doc: fix incomplete json produced by doctool
authorfiredfox <wangyang0123@gmail.com>
Thu, 31 Mar 2016 03:55:59 +0000 (11:55 +0800)
committerMyles Borins <mborins@us.ibm.com>
Mon, 11 Apr 2016 16:12:05 +0000 (12:12 -0400)
commit6f0bd64122a8e5b45dd031a96e79208bc9b02150
treeb71f862408ead22a2658ae4230b61aeb3cf17328
parent1994ac09122967b5fbd3a9ec8bd4908a4cb9f074
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: https://github.com/nodejs/node/pull/5966
Fixes: https://github.com/nodejs/node/issues/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>
tools/doc/json.js