Skip to content
This repository was archived by the owner on Dec 28, 2021. It is now read-only.

Preserve line separators of each files - #143

Open
dinglufe wants to merge 1 commit into
Moeditor:masterfrom
dinglufe:preserve-line-separators
Open

dinglufe wants to merge 1 commit into
Moeditor:masterfrom
dinglufe:preserve-line-separators

Conversation

@dinglufe

Copy link
Copy Markdown

Normalizing all the line separators to UNIX style ‘\n’ after reading from files,and restoring to original separators ('\r' or '\r\n') before saving.

@Menci

Menci commented Jan 14, 2018

Copy link
Copy Markdown
Member

But why do you replace to '\r\n' when saving?

@dinglufe

dinglufe commented Feb 4, 2018

Copy link
Copy Markdown
Author

No,I just replace to '\r\n' for those files which is separated by '\r\n' on disks.That is,line separators will be replaced to '\r' and '\n' for files on macOS and Linux,respectively.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants