diff options
author | mrsdizzie <info@mrsdizzie.com> | 2020-07-07 18:30:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 01:30:21 +0300 |
commit | 078d2fbd4c386d0cf37378078443f5f8dbe89f37 (patch) | |
tree | 43be7a0241e20c214b5f2f5d0c0c75ecafdaf967 /go.mod | |
parent | 30399cf04ad7578c67d4268878df071cac515fc9 (diff) | |
download | gitea-078d2fbd4c386d0cf37378078443f5f8dbe89f37.tar.gz gitea-078d2fbd4c386d0cf37378078443f5f8dbe89f37.zip |
Remove newline when highlighting random chunks of code (#12180)
* Remove newline when highlighting random chunks of code
Somewhere when tokenizing a newline gets added to code formatted by chroma. This breaks the case of 'added-code' inside of an 'added-line' in a diff. Just remove any newline when processing chunks of code since we don't need it.
Fixes #12172
* don't process empty lines
* This is the proper way to fix this by telling chroma not to add the newline in the first place
Diffstat (limited to 'go.mod')
-rw-r--r-- | go.mod | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -100,8 +100,8 @@ require ( github.com/urfave/cli v1.20.0 github.com/xanzy/go-gitlab v0.31.0 github.com/yohcop/openid-go v1.0.0 - github.com/yuin/goldmark-highlighting v0.0.0-20200307114337-60d527fdb691 github.com/yuin/goldmark v1.1.32 + github.com/yuin/goldmark-highlighting v0.0.0-20200307114337-60d527fdb691 github.com/yuin/goldmark-meta v0.0.0-20191126180153-f0638e958b60 golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 golang.org/x/net v0.0.0-20200602114024-627f9648deb9 |