diff --git a/.gitignore b/.gitignore index 4a188a5486..0d33cd507b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ typings www .DS_Store .idea -**/js/latest/api \ No newline at end of file +**/js/latest/api + diff --git a/public/api-builder/angular.io-package/rendering/indentForMarkdown.js b/public/api-builder/angular.io-package/rendering/indentForMarkdown.js index e7d8dea4fe..766184cac1 100644 --- a/public/api-builder/angular.io-package/rendering/indentForMarkdown.js +++ b/public/api-builder/angular.io-package/rendering/indentForMarkdown.js @@ -44,9 +44,9 @@ module.exports = function(encodeCodeBlock) { newLines.pop(); } } - + // force character to be a newLine. + if (newLines.length > 0) newLines.push(''); var res = newLines.join('\n'); - return res; } };