In google chrome, I'm trying to add colors to console.logs using css, but I'm facing a problem with line breaks.
in a simple console log, \n
works just fine:
but it somehow gets ignored when I add styles:
do you know why this is happening? and how I can solve it without making several calls to console.log?
console.log('%c%s%c \n b', 'color: blue', 'a', '')
and it works (chrome 69.0.3497.100 ) - ben