-
Notifications
You must be signed in to change notification settings - Fork 42
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 wrong markdown render of changelog that use CRLF or CR line separator #177
Conversation
@hsz @YannCebron - Sorry to disturb you. When you have a few minutes, would you mind taking a look at this PR? |
+1. I can also reproduce the issue. @YannCebron @hsz can we prioritize this PR? |
I'll take care of it next week. |
This PR, partially fix also #175. |
Thanks a lot! 🔥 |
Thank you for the release of the fix. Unfortunately i found another issue on changelog file that use CRLF as line separator (This time related to HTML/Plain text render). In the next days, I'll check the problem better and, if needed, i will open a related issue/PR I'm starting to think that i'm the only one that use Windows for develop 🤣 (And not use Github Actions for release 😢 ) |
Thank you for your contributions, I'm more than happy to see activity in this project. 😇 |
|
Pull Request Details
This pull request should fix #176, and takes support to all line separator. In this moment, the only (real) supported line separator is only the Unix/MacOS
LF
line separator.Description
This PR fix
gradle patchChangelog
task ifCHANGELOG.md
useCRLF
orCR
line separator, and also other issue on changelog that use these line separatorsRelated Issue
Motivation and Context
This PR takes support to all line separators and applies a workaround to a markdown component, that is open since 2020.
The solution applied is the following:
CHANGELOG.md
file content and convert line separator to LFrender
method, use the already presentreformat
method that restore the correct line separator choose by user.How Has This Been Tested
I tested the changes on my personal gradle project that use
gradle changelog plugin
, that use aCHANGELOG.md
file withCRLF
line separator. I also create some unit test on my changes.Types of changes
Checklist