fix(indentForMarkdown) extra trailing spaces on last line.
This commit is contained in:
parent
a30fddadd0
commit
49496e4ce9
|
@ -7,3 +7,4 @@ www
|
|||
.DS_Store
|
||||
.idea
|
||||
**/js/latest/api
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue