RSCC-Forge/modules
silverwind 527e5bd1b2
Fix copy/paste of empty lines (#19798)
* Fix copy/paste of empty newlines again

Fixes: https://github.com/go-gitea/gitea/issues/19331
Regressed by: https://github.com/go-gitea/gitea/pull/18270

Needed to do another newline addition to the Chroma output HTML to get
copy/paste work again. The previous replacement conditions are probably
obsolete, but as I'm not 100% sure, I opted to keep them.

Specifically, the Chroma HTML change mentioned in
https://github.com/go-gitea/gitea/pull/18270#issuecomment-1013350246
broke our previous newline replacement for such empty lines.

Also included are a few changes to make the test more pleasant to work
with.

* run go mod tidy

* add util.Dedent

* copy in the code

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2022-06-10 21:45:28 +08:00
..
activitypub
analyze
appstate
auth
avatar
base
cache Update go-chi/cache to utilize Ping() (#19719) 2022-05-15 20:43:27 +02:00
charset
container
context
convert
csv
doctor
emoji
eventsource
generate
git Refactor git module, make Gitea use internal git config (#19732) 2022-06-10 09:57:49 +08:00
gitgraph
graceful
hcaptcha
highlight Fix copy/paste of empty lines (#19798) 2022-06-10 21:45:28 +08:00
hostmatcher
httpcache
httplib
indexer Refactor git module, make Gitea use internal git config (#19732) 2022-06-10 09:57:49 +08:00
json
lfs
log
markup Custom regexp external issues (#17624) 2022-06-10 13:39:53 +08:00
metrics
migration
nosql
notification
options
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references Custom regexp external issues (#17624) 2022-06-10 13:39:53 +08:00
regexplru Custom regexp external issues (#17624) 2022-06-10 13:39:53 +08:00
repository Refactor git module, make Gitea use internal git config (#19732) 2022-06-10 09:57:49 +08:00
secret
session
setting
ssh
storage
structs
svg
sync
templates
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util Fix copy/paste of empty lines (#19798) 2022-06-10 21:45:28 +08:00
validation
web