diff --git a/tools/doc/generate.js b/tools/doc/generate.js index af81372532..43e94311ff 100755 --- a/tools/doc/generate.js +++ b/tools/doc/generate.js @@ -86,7 +86,7 @@ function processIncludes(input, cb) { if (er) return cb(errState = er); incCount--; includeData[fname] = inc; - input = input.split(include).join(includeData[fname]); + input = input.split(include+'\n').join(includeData[fname]+'\n'); if (incCount === 0) { return cb(null, input); }