1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-22 07:34:26 +00:00
mrsdizzie 078d2fbd4c
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
2020-07-08 01:30:21 +03:00
..
2020-04-05 07:20:50 +01:00
2020-06-22 11:21:11 -04:00
2020-04-05 07:20:50 +01:00
2019-06-12 15:41:28 -04:00
2018-11-04 22:20:00 -05:00
2019-06-12 15:41:28 -04:00
2019-11-22 08:03:45 +00:00
2019-03-08 11:42:50 -05:00
2020-07-06 11:58:31 -04:00
2019-08-17 13:10:17 +03:00
2020-04-05 07:20:50 +01:00