Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix line endings for CRLF (windows) #170

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

Conversation

SvenGasterstaedt
Copy link

@SvenGasterstaedt SvenGasterstaedt commented Sep 12, 2023

Fix line endings for windows.

Currently the replacing of line endings is wrong and too late. Rather than replacing "\r\n" which represents a windows line ending only "\r" is replaced resulting in double line endings on files with CRLF-endings.

Unfortunalty just adjusting the replacement from "\r" to "\r\n" breaks the formatting as the parser above also depends on UNIX-lineendings.

TODO:

  • unmarshalling does not work on windows (the common config does not auto resolve) @daixiang0 would be cool, if you could provide some input on how the unmarshaling works

Signed-off-by: Sven Gasterstädt <131267808+SvenGasterstaedt@users.noreply.github.com>
@daixiang0
Copy link
Owner

@SvenGasterstaedt all format is based on UNIX, what do you mean common config not work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants