We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
Multiline strings in a dictionary are serialized with extra trailing whitespace.
To Reproduce
test_file.py
def test_lines(snapshot): lines = "\n".join([ "line 1", "line 2", "line 3" ]) assert { "value": lines } == snapshot
Output (whitespace highlighted):
Expected behavior
Trailing whitespace should only be included if it's actually present in the data that is serialized.
Desktop (please complete the following information):
Additional context
The amount of trailing whitespace seems to vary. Might be based on indentation, haven't looked into it too much.
This is consistent behaviour and thus does not "break" anything, and thus fixing this would require a breaking change.
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 0.4.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
Sorry, something went wrong.
noahnu
Successfully merging a pull request may close this issue.
Describe the bug
Multiline strings in a dictionary are serialized with extra trailing whitespace.
To Reproduce
test_file.py
Output (whitespace highlighted):
Expected behavior
Trailing whitespace should only be included if it's actually present in the data that is serialized.
Desktop (please complete the following information):
Additional context
The amount of trailing whitespace seems to vary. Might be based on indentation, haven't looked into it too much.
This is consistent behaviour and thus does not "break" anything, and thus fixing this would require a breaking change.
The text was updated successfully, but these errors were encountered: