3 var repeat = require('./repeat')
5 , replace = String.prototype.replace
6 , re = /(\r\n|[\n\r\u2028\u2029])([\u0000-\u0009\u000b-\uffff]+)/g;
8 module.exports = function (indent/*, count*/) {
9 var count = arguments[1];
10 indent = repeat.call(String(indent), (count == null) ? 1 : count);
11 return indent + replace.call(this, re, '$1' + indent + '$2');