Resolves#60
Extracts the previous trim into a new func as well to keep any title munging consistent.
Reviewed-on: https://gitea.com/gitea/changelog/pulls/76
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: techknowlogick <techknowlogick@noreply.gitea.io>
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Co-committed-by: jolheiser <john.olheiser@gmail.com>