It looks like you have got lots of extra newline characters there. How are you copying it back? Perhaps clone it locally and move the file into the .node-red folder, and rename it.
Okay. Now i see what happened. I paste it as a comment to one of my Gists on Github. So i guess the github comment section formatted it. And now i am in this mess.
But i can't find out what Github did to that code. I don't see anything wrong with it. Hmm
Paste it again to an editor that can handle pure text, then maybe you will see what is wrong and you can do search & replace if necessary. I personally use UltraEdit