Copying JS code with multiple lines paste all the code in 1 line

Very strange…
It only happened when I copied a code from here to a text editor.

All other codes are fine.

Here is the code from Darko.

What could make this pasting in 1 line?