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

os.linesep changed to \n #98

Merged
merged 1 commit into from
Sep 26, 2024
Merged

os.linesep changed to \n #98

merged 1 commit into from
Sep 26, 2024

Conversation

eriktks
Copy link
Member

@eriktks eriktks commented Sep 17, 2024

Issue

#97

Description of changes

The Windows bug was reproduced on Linux. It seems the Storynavigator method for reading resource local files (pathlib.PosixPath / read_text) by default replaces all "\r\n" sequences by "\n". The bug is expected to be fixed by having changed all variables os.linesep with "\n" in the files actionanalysis.py actoranalysis.py and tagging.py

Includes

  • Code changes
  • Tests
  • Documentation

@eriktks eriktks self-assigned this Sep 17, 2024
Copy link
Collaborator

@ThijsVroegh ThijsVroegh left a comment

Choose a reason for hiding this comment

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

I tested the code using the stopwords as an indicator whether the adjustment worked. It did! I also checked the code, basically hardcoding '/n' as a way to fix the bug

@eriktks eriktks merged commit e242fb1 into master Sep 26, 2024
0 of 3 checks passed
@eriktks eriktks deleted the issue97 branch September 26, 2024 11:50
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.

2 participants