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