1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-20 09:34:37 +01:00
gitea/services
mrsdizzie 9fe4b7b692
Fix error in diff html rendering (#13191)
* Fix error in diff html rendering

Was missing an optional whitespace check in regex. Also noticed a rare case where diff.Type == Equal would be empty and thus get a newline attached. Fixed that too.

Fixes #13177

* Update services/gitdiff/gitdiff.go

Co-authored-by: zeripath <art27@cantab.net>

* Update gitdiff_test.go

* fmt

Co-authored-by: zeripath <art27@cantab.net>
2020-10-18 13:51:38 -04:00
..
comments
externalaccount
gitdiff Fix error in diff html rendering (#13191) 2020-10-18 13:51:38 -04:00
issue
mailer
mirror
pull
release
repository
wiki