fix(indentForMarkdown) extra trailing spaces on last line.

This commit is contained in:
Jay Traband 2015-09-18 15:35:12 -07:00
parent a30fddadd0
commit 49496e4ce9
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@ -6,4 +6,5 @@ typings
www www
.DS_Store .DS_Store
.idea .idea
**/js/latest/api **/js/latest/api

View File

@ -44,9 +44,9 @@ module.exports = function(encodeCodeBlock) {
newLines.pop(); newLines.pop();
} }
} }
// force character to be a newLine.
if (newLines.length > 0) newLines.push('');
var res = newLines.join('\n'); var res = newLines.join('\n');
return res; return res;
} }
}; };