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

Saving input adds extra new line char #23

Open
voberle opened this issue Feb 5, 2024 · 1 comment
Open

Saving input adds extra new line char #23

voberle opened this issue Feb 5, 2024 · 1 comment

Comments

@voberle
Copy link

voberle commented Feb 5, 2024

I was doing the 2018 day 5 challenge and my code didn't work. The problem was that the input file downloaded with aoc-cli had a newline at the end. Removing the newline fixed the issue.

Now I don't know if this can be considered a bug, since if I download the input with the browser, there is also a newline at the end. But if I copy-paste it, there isn't one. So I would understand if you reject this bug :-)

Nevertheless IMHO, the client should make it as easy as possible for developers, and so removing this newline would make sense I feel.

@voberle
Copy link
Author

voberle commented Feb 9, 2024

FWIW another AoC tool, "cargo-aoc" does such trimming. Here is even the issue where they switched from trim() to trim_end_matches('\n')

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

No branches or pull requests

1 participant