Browse Source

flatten the result objects

formatter
Brett Langdon 11 years ago
parent
commit
8ca294ff5e
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      lib/index.js

+ 3
- 4
lib/index.js View File

@ -110,10 +110,9 @@ module.exports.parseContents = function(contents, options){
if(comment.type === 'Block'){
var body = comment.value;
body = body.replace(skip, '');
results.push({
doc: body,
data: expressions[comment.loc.end.line + 1],
});
data = expressions[comment.loc.end.line + 1] || {};
data.doc = body;
results.push(data);
}
});


Loading…
Cancel
Save