Newline Character not translating to Notepad

admin

Administrator
Staff member
I have a script that allows a user to click on a link to have a string placed in their clipboard. In this string, i want to use the newline character (\n) for formatting (this is to format an address).

So i hit the link to copy the string, and then i paste it into Notepad. In notepad, it is all on one line and instead of having a newline, it has a box character...

How do i generate a newline that will translate into notepad?

My code looks like this:

var strClipBoard = strAddress + "\n" + strCity;


let me know if you need all of the code...to test this with.

thanks
 
Back
Top