Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 49496e4

Browse files
committed
fix(indentForMarkdown) extra trailing spaces on last line.
1 parent a30fdda commit 49496e4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ typings
66
www
77
.DS_Store
88
.idea
9-
**/js/latest/api
9+
**/js/latest/api
10+

public/api-builder/angular.io-package/rendering/indentForMarkdown.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ module.exports = function(encodeCodeBlock) {
4444
newLines.pop();
4545
}
4646
}
47-
47+
// force character to be a newLine.
48+
if (newLines.length > 0) newLines.push('');
4849
var res = newLines.join('\n');
49-
5050
return res;
5151
}
5252
};

0 commit comments

Comments
 (0)