0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 22:41:44 +01:00
gitea/modules/highlight
zeripath 23a87a003e
Ensure empty lines are copiable and final new line too (#16678)
* Ensure empty lines are copiable and final new line too

When files are highlighted the newline character needs to be added in a whitespace
compliant mode. Also ensure the final empty newline is rendered.

Fix #16434

* Add test and ensure spans closed

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-08-14 01:16:56 +02:00
..
highlight.go Ensure empty lines are copiable and final new line too (#16678) 2021-08-14 01:16:56 +02:00
highlight_test.go Ensure empty lines are copiable and final new line too (#16678) 2021-08-14 01:16:56 +02:00