mirror of
https://github.com/thomiceli/opengist.git
synced 2025-07-10 09:51:51 +02:00
Optimize reading gist files content (#186)
This commit is contained in:
@ -39,7 +39,7 @@ func HighlightFile(file *git.File) (RenderedFile, error) {
|
||||
|
||||
formatter := html.New(html.WithClasses(true), html.PreventSurroundingPre(true))
|
||||
|
||||
iterator, err := lexer.Tokenise(nil, file.Content)
|
||||
iterator, err := lexer.Tokenise(nil, file.Content+"\n")
|
||||
if err != nil {
|
||||
return rendered, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user