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

Line endings \r\n converted to \n #51

Open
stella-councyl opened this issue Aug 5, 2024 · 0 comments
Open

Line endings \r\n converted to \n #51

stella-councyl opened this issue Aug 5, 2024 · 0 comments

Comments

@stella-councyl
Copy link

Hi,

When I use nh3.clean(), line endings \r\n are converted to \n.
This behavior can cause issues for applications that rely on \r\n as their newline format, for example in a request body.

Example code

import nh3

input = "Line1\r\nLine2"
nh3.clean(input) # Outputs: 'Line1\nLine2'

Is this a desired behavior?

Thank you in advance!


Environment:

  • nh3 version: 0.2.18
  • Python version: 3.12.2
  • Operating System: Microsoft Windows [Version 10.0.19045.4651]
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