diff --git a/insta/src/snapshot.rs b/insta/src/snapshot.rs index e69f5660..dc0a210e 100644 --- a/insta/src/snapshot.rs +++ b/insta/src/snapshot.rs @@ -471,7 +471,7 @@ impl Snapshot { /// The normalized snapshot contents as a String pub fn contents_string(&self) -> String { - self.snapshot.to_string() + self.snapshot.normalize() } fn serialize_snapshot(&self, md: &MetaData) -> String {