Implement custom line separators #12

Closed
opened 2018-08-28 14:41:17 +02:00 by marijnh · 1 comment
marijnh commented 2018-08-28 14:41:17 +02:00 (Migrated from github.com)

The plan is to change the Text data structure to be line-ending-agnostic, and have code that calls it deal with it pre-separated arrays of strings. The editor state should store the line separator somewhere (#1) and that's what you get when you read text from the editor, and what's used to split when you put text in. The default mode should again be a loose one where everything that looks like a newline is split on, and the output uses \n characters.

The plan is to change the Text data structure to be line-ending-agnostic, and have code that calls it deal with it pre-separated arrays of strings. The editor state should store the line separator somewhere (#1) and that's what you get when you read text from the editor, and what's used to split when you put text in. The default mode should again be a loose one where everything that looks like a newline is split on, and the output uses `\n` characters.
marijnh commented 2018-08-31 11:19:55 +02:00 (Migrated from github.com)

This has been done in 7e29227337...0792ad0357

This has been done in 7e29227337...0792ad0357
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/dev#12
No description provided.