Skip to content

Conversation

@mantoni
Copy link
Member

@mantoni mantoni commented Dec 22, 2016

If the CHANGES.md file is checked out on Windows with CRLF, the header detection and the check for an already existing version fail.

With this fix, the checks are made with regular expressions to support CRLF and LF. The initial check for the header is also used to detect which newline style is used.

There are two open points:

  • Confirm this actually fixes the issue on Windows
  • Does git log print out CRLFs on Windows?

@tivac Can you check?

Fixes #1

@tivac
Copy link
Contributor

tivac commented Dec 22, 2016

Looks fine to me. I'm having a problem where the editor package is immediately returning instead of waiting for the file to be closed, but I'll dig into that separately.

@tivac
Copy link
Contributor

tivac commented Dec 22, 2016

(just verified that editor thing is 100% unrelated, totally a local config issue! 👍 )

@mantoni
Copy link
Member Author

mantoni commented Dec 23, 2016

I read about git log a bit more and it seems to always print out LF only, regardless of settings.

@mantoni mantoni merged commit d477f16 into master Dec 23, 2016
@mantoni
Copy link
Member Author

mantoni commented Dec 23, 2016

Released in v1.0.5. Please update.

@mantoni mantoni deleted the crlf branch December 23, 2016 08:31
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.

Header detection depends on LF

3 participants