Fix include logic was replacing https include with http
authorisaacs <i@izs.me>
Sat, 17 Mar 2012 18:07:28 +0000 (11:07 -0700)
committerisaacs <i@izs.me>
Sat, 17 Mar 2012 18:07:35 +0000 (11:07 -0700)
tools/doc/generate.js

index af813725326293c4489545189b30f983495d9a65..43e94311ff11a887299604b51cc2c090ad37181c 100755 (executable)
@@ -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);
         }