Closed Bug 956831 Opened 10 years ago Closed 10 years ago

console.log doesn't respect the new line character

Categories

(Firefox :: Untriaged, defect)

29 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 952708

People

(Reporter: system64, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.73.11 (KHTML, like Gecko) Version/7.0.1 Safari/537.73.11

Steps to reproduce:

In console
   console.log("Mozilla \n Firefox");



Actual results:

Displays "Mozilla \n Firefox"


Expected results:

It should display

Mozilla 
Firefox

in separate lines

P.S - This is the output shown in Chrome 31.0. Also, Hacks blog uses the new line character for ASCII art, which displays correctly in Chrome but not in FF
Works fine on Windows. Have you tried \r\n ?
No even \r\n doesn't seem to be working. I checked on Safari 7.0.1 and the behaviour is consistent with Chrome.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.