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

Preserve line separators of each files #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Preserve line separators of each files #143

wants to merge 1 commit into from

Conversation

dinglufe
Copy link

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
Copy link
Member

Menci commented Jan 14, 2018

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

@dinglufe
Copy link
Author

dinglufe commented Feb 4, 2018

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.

None yet

2 participants