Extra space at the beginning of console.log
As of a recent update, Chrome seems to insert spaces at the beginning of every exit console.log
. This code:
console.log("one");
console.log("two\nthree");
console.log("four");
... is used to give me this expected output when launching Chrome, where all lines are on the left edge:
Text version:
one two three four
... but as of a fairly recent Chrome update (I don't know the exact version where it was launched, but this has been happening since v39.0.2171.95) console.log
, it seems to insert a space at the beginning of every line you ask for output:
Text version:
one two three four
Note that three
it is not indented because it is part of the same line as two
, just preceded by a newline .
Does anyone know why this would be and how to get it to stop inserting those spaces? Is this a Chrome bug? (I don't see on the list of problems , but ...)
source to share
And in fact, they've already answered, identified when the regression occurred, and started fixing it. Gosh.
source to share