diff --git a/src/source_code/generator.rs b/src/source_code/generator.rs index 6843e4c5538095..938da38e349f00 100644 --- a/src/source_code/generator.rs +++ b/src/source_code/generator.rs @@ -1102,7 +1102,7 @@ if True: if True: pass "# - .trim() + .trim().replace("\n", LineEnding::default().as_str()) ); } @@ -1152,7 +1152,7 @@ if True: round_trip_with( &Indentation::new(" ".to_string()), &Quote::default(), - &LineEnding::default(), + &LineEnding::LF(), r#" if True: pass @@ -1163,13 +1163,13 @@ if True: if True: pass "# - .trim() + .trim().replace("\n", LineEnding::default().as_str()) ); assert_eq!( round_trip_with( &Indentation::new(" ".to_string()), &Quote::default(), - &LineEnding::default(), + &LineEnding::LF(), r#" if True: pass @@ -1180,7 +1180,7 @@ if True: if True: pass "# - .trim() + .trim().replace("\n", LineEnding::default().as_str()) ); assert_eq!( round_trip_with( @@ -1197,7 +1197,7 @@ if True: if True: pass "# - .trim() + .trim().replace("\n", LineEnding::default().as_str()) ); }