sora-editor icon indicating copy to clipboard operation
sora-editor copied to clipboard

Make line separator compatible with windows CRLF = LF

Open Ma7moud3ly opened this issue 1 year ago • 1 comments

I'm creating a text editor for Micropython, sometimes a user write a script in Windows and tries to edit it with my code editor. If a text contains "\r\n\r\n" CRLF CRLF

  • in logcat (windows)

  • CodeEditor formats it with 4 line separators..

How to consider \n == \r\n without using String.replace method

Ma7moud3ly avatar Apr 30 '24 01:04 Ma7moud3ly

Loading text with ContentIO should works.

Rosemoe avatar Apr 30 '24 01:04 Rosemoe