You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a changelog is produced on one platform (e.g. MacOS), with it's style of line endings (e.g. LF), when trying to run the changelog-parser on another platform (e.g. Windows), it tries to use the current OS'es line endings style (e.g. CRLF), and will parse the entire file as one 'line'.
An option should be added to be able to supply a custom line endings style (or automatically detect style from changelog file), so that this can be used in source-controlled projects across multiple platforms.
The text was updated successfully, but these errors were encountered:
I added the custom line endings option so that in (unusual) cases where the changelog uses multiple line endings (and you don't want the most common one), or line endings other than CR, LF, or CRLF, you have the ability to specify it yourself (I don't see this being a likely occurrence, but it was easy enough to add)
I just ran the test suite on Mac windows and linux and it passed. Windows git does some wacky stuff with line endings, but if git for windows is configured right, it should work fine. Im nervous this adds additional complexity for what boils down to a misconfiguration with windows git.
If I understand correctly, this package currently assumes files will be using line endings appropriate for the OS its running on, and is choking when using line endings that don't match what the OS is set to use, to which the correct solution is, use line endings correct for the OS.
When a changelog is produced on one platform (e.g. MacOS), with it's style of line endings (e.g. LF), when trying to run the changelog-parser on another platform (e.g. Windows), it tries to use the current OS'es line endings style (e.g. CRLF), and will parse the entire file as one 'line'.
An option should be added to be able to supply a custom line endings style (or automatically detect style from changelog file), so that this can be used in source-controlled projects across multiple platforms.
The text was updated successfully, but these errors were encountered: