From 0acaad191924fffed6c38ed2ec65df7a663e64ac Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Jan 2026 21:41:43 +0000 Subject: [PATCH] Fix editorconfig not respected in PR Conversation view (#36492) Fixes: https://github.com/go-gitea/gitea/issues/24991 Signed-off-by: silverwind Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: silverwind <115237+silverwind@users.noreply.github.com> Co-authored-by: silverwind --- routers/web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/web.go b/routers/web/web.go index c37add30d5..22b78793ef 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -1530,7 +1530,7 @@ func registerWebRoutes(m *web.Router) { m.Group("/{username}/{reponame}", func() { m.Get("/{type:pulls}", repo.Issues) m.Group("/{type:pulls}/{index}", func() { - m.Get("", repo.SetWhitespaceBehavior, repo.GetPullDiffStats, repo.ViewIssue) + m.Get("", repo.SetEditorconfigIfExists, repo.SetWhitespaceBehavior, repo.GetPullDiffStats, repo.ViewIssue) m.Get(".diff", repo.DownloadPullDiff) m.Get(".patch", repo.DownloadPullPatch) m.Get("/merge_box", repo.ViewPullMergeBox)