{{.FilePath}} {{$link := HTMLFormat `%s` .RepoLink .CommitID (.CommitID | ShortSha) -}} {{- if eq .LineStart .LineStop -}} {{ctx.Locale.Tr "repo.code_preview_line_in" .LineStart $link}} {{- else -}} {{ctx.Locale.Tr "repo.code_preview_line_from_to" .LineStart .LineStop $link}} {{- end}}
{{- range $idx, $line := .HighlightLines -}} {{- if $.EscapeStatus.Escaped -}} {{- $lineEscapeStatus := index $.LineEscapeStatus $idx -}} {{- end}} {{/* only div works, span generates incorrect HTML structure */}} {{- end -}}
{{if $lineEscapeStatus.Escaped}}{{end}}
{{$line.FormattedContent}}