Skip to content

fix: replace newline removal with rstrip for better line handling #48

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

Merged

Conversation

FedericaBrando
Copy link
Member

This pull request includes an important change to the _base_parser function in the openvariant/variant/variant.py file to improve the handling of line endings in order to parse windows-based text correctly.

  • openvariant/variant/variant.py: Modified the lambda function in the _base_parser method to use rstrip("\r\n") instead of replace("\n", "") for better handling of different line endings.

source stackoverflow

@FedericaBrando FedericaBrando added the bug Something isn't working label Apr 7, 2025
@FedericaBrando FedericaBrando self-assigned this Apr 7, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@dmartmillan dmartmillan merged commit 351c665 into develop Apr 7, 2025
1 check passed
@FedericaBrando FedericaBrando deleted the fix/47-windows-input-files-not-parsed-properly branch April 7, 2025 14:24
@dmartmillan dmartmillan mentioned this pull request Apr 7, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants