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: handle different line endings #246

Merged
merged 3 commits into from
Nov 22, 2024

Conversation

rgalonso
Copy link
Contributor

Closes #245

@rgalonso rgalonso marked this pull request as draft November 14, 2024 21:52
@rgalonso
Copy link
Contributor Author

Not sure why the build failed. I'll investigate and put this back in the ready state when it's resolved.

Fix a regression that was accidentally introduced
with v5.1.2 which could cause an issue URL to not
be successfully added to the source file when
dealing with a CRLF (Windows-style line endings)
file on Linux.

Partially addresses GitHub issue alstr#245
Regardless of the OS on which the app is running,
respect the original line endings of the file
when writing back the issue URL. In the case of
a mixed line-ending file (e.g. both Windows-style
CRLF and Unix-style LF), the issue URL comment
line will use the line ending style of the TODO
comment line above it.

Partially addresses GitHub issue alstr#245
Ensure alignment of issue URL line is correct even
when the TODO line had any number of tab
characters prior to the issue title

Addresses remaining sub-issues of and
closes GitHub issue alstr#245
@rgalonso rgalonso force-pushed the fix/handle-different-line-endings branch from 09d3fe4 to 6f69995 Compare November 15, 2024 15:13
@rgalonso rgalonso marked this pull request as ready for review November 15, 2024 15:18
@rgalonso
Copy link
Contributor Author

@alstr, ready for your review

@alstr alstr merged commit 6cf1955 into alstr:master Nov 22, 2024
1 check passed
@alstr
Copy link
Owner

alstr commented Nov 22, 2024

Thanks! 😄

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.

various whitespace issues
2 participants