Does there exist unicode "New-Line" (Line-break), like there is unicode `space` ( )?

T.Todua picture T.Todua · Dec 23, 2018 · Viewed 16.3k times · Source

There are site where you can get Unicode characters, like unicode space, for example, you can copy-paste that.

For example, inside the brackets below are two different UNICODE spaces, which you can copy-paste:

U+0020: ( )

U+2001: ( )

Does there exist a Unicode new-line, which I could copy-paste? (PLEASE NOTE, I DON'T ASK ABOUT THE CODE, like U+000D or whatever is considered as new line. I want the "copyable" output, like the above space (which I have put above in brackets and can be copied). So, if there is, please paste it in your answer, so I could copy it, like you copy the unicode space above from brackets. I can't explain it better.

Answer

RedGrittyBrick picture RedGrittyBrick · Dec 3, 2019

Does there exist a Unicode new-line, which I could copy-paste?

Yes, but it depends on the exact circumstances.

There are many Unicode line-terminators. For example NEL U+0085 but these do not survive being cut & pasted into this answer's text-area input field using the web-browser Chrome. However I can successfully copy&paste it back and forth between, for example, Notepad and Vim text editors.

Of course, neither of these applications respect the meaning of this particular character.

You can cut&paste Unicode LF U+000A between, for example, Vim and Notepad and have it be treated appropriately - but I'm sure the two applications are potentially performing some conversion during the paste operations.

The way cut&paste works is platform dependent, the above is true of MS-Windows-10 and may not be true on Android, IOS, Linux, OS/X or other platforms.