diff options
author | mrsdizzie <info@mrsdizzie.com> | 2020-10-18 12:51:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-18 13:51:38 -0400 |
commit | 9fe4b7b6920c9760262ad8e77b7ed50ee8f7d464 (patch) | |
tree | 4cf80554702b99f76cb8184aac6e27178ebadfcf /docker | |
parent | 5e34d3d2c06246f27ab04c5d1e6aa23048d4209e (diff) | |
download | gitea-9fe4b7b6920c9760262ad8e77b7ed50ee8f7d464.tar.gz gitea-9fe4b7b6920c9760262ad8e77b7ed50ee8f7d464.zip |
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>
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions