Skip to content

Conversation

@mitsuhiko
Copy link
Owner

Previously leading whitespace caused snapshots to mismatch. This is an issue for inline snapshots where the code that removes leading indentation cannot express this properly. For now solve this by ignoring leading newlines in addition to trailing spaces which are already ignored.

Ideally future versions of the macros would inject a special character into a snapshot if leading and trailing newlines play a role.

@mitsuhiko mitsuhiko merged commit 0974fe8 into master Feb 19, 2024
@mitsuhiko mitsuhiko deleted the whitespace-trim branch February 19, 2024 16:09
@mitsuhiko mitsuhiko mentioned this pull request Feb 19, 2024
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