]> source.dussan.org Git - gitea.git/commit
Fix label rendering (#30456)
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 13 Apr 2024 10:05:33 +0000 (18:05 +0800)
committerGitHub <noreply@github.com>
Sat, 13 Apr 2024 10:05:33 +0000 (10:05 +0000)
commit18dd9f9a3f3ef68e3cb2c0b032f751b64ea0e6e8
tree9c1037c4f868babb4f0839d987f5c9bff3802f26
parent92e27e15c38b95be2309dae316b896ee1d80324b
Fix label rendering (#30456)

1. Check whether the label is for an issue or a pull request.
2. Don't use space to layout
3. Make sure the test strings have trailing spaces explicitly, to avoid
some IDE removing the trailing spaces automatically.
modules/templates/util_render.go
modules/templates/util_render_test.go
templates/repo/issue/view_content/comments.tmpl