diff --git a/packages/x-codemod/README.md b/packages/x-codemod/README.md
index 174c86281864..05de183880cf 100644
--- a/packages/x-codemod/README.md
+++ b/packages/x-codemod/README.md
@@ -141,11 +141,10 @@ The list includes these transformers
Renames legend props to the corresponding slotProps.
```diff
-
-
+ />
```
#### `rename-responsive-chart-container`
diff --git a/packages/x-codemod/src/v8.0.0/charts/preset-safe/expected.spec.tsx b/packages/x-codemod/src/v8.0.0/charts/preset-safe/expected.spec.tsx
index b0c56c2ec9a1..6f80f49b4e3a 100644
--- a/packages/x-codemod/src/v8.0.0/charts/preset-safe/expected.spec.tsx
+++ b/packages/x-codemod/src/v8.0.0/charts/preset-safe/expected.spec.tsx
@@ -15,7 +15,7 @@ import { ChartContainer } from '@mui/x-charts/ChartContainer';
tooltip: { trigger: 'axis' },
legend: { hidden: true }
}} />
-
-
-
+
+
+
;