flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.8k stars 3.2k forks source link

Code diffs don't show correct indentation #11028

Closed johnpryan closed 3 weeks ago

johnpryan commented 1 month ago

Describe the problem

Code snippets that use diff2html are not indented correctly.

Expected fix

I'm not sure how to fix this, or what could be causing this, but perhaps there is something we are doing wrong in our tooling.

On which platform(s) did you experience this issue?

macOS

Additional context

For example, see the Implicit animations page.

Screenshot: Screenshot 2024-08-08 at 1 08 23 PM

johnpryan commented 1 month ago

cc: @parlough

parlough commented 1 month ago

I want to get rid of diff2html very soon, so perhaps with this issue I'll prioritize that.