fix(indentForMarkdown) extra trailing spaces on last line.
This commit is contained in:
parent
a30fddadd0
commit
49496e4ce9
|
@ -7,3 +7,4 @@ 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…
Reference in New Issue