Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / node_modules / debug / src / node.js
index dbbb5f1087fdc7a9cfbe1751e595f2df8c4a3454..1e6a5f16aecdd38a2bfb607f3d82e299f7624f9a 100644 (file)
@@ -160,7 +160,10 @@ var formatters = module.exports.formatters;
 
 formatters.o = function (v) {
   this.inspectOpts.colors = this.useColors;
-  return util.inspect(v, this.inspectOpts).replace(/\s*\n\s*/g, ' ');
+  return util.inspect(v, this.inspectOpts)
+    .split('\n')
+    .map(function (str) { return str.trim(); })
+    .join(' ');
 };
 /**
  * Map %O to `util.inspect()`, allowing multiple lines if needed.