mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-15 01:14:21 +02:00
@ -137,7 +137,7 @@ func (f *Formatter) writeHTML(w io.Writer, style *chroma.Style, tokens []*chroma
|
|||||||
fmt.Fprintf(w, "<body%s>\n", f.styleAttr(css, chroma.Background))
|
fmt.Fprintf(w, "<body%s>\n", f.styleAttr(css, chroma.Background))
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintf(w, "<pre%s>\n", f.styleAttr(css, chroma.Background))
|
fmt.Fprintf(w, "<pre%s>", f.styleAttr(css, chroma.Background))
|
||||||
lines := splitTokensIntoLines(tokens)
|
lines := splitTokensIntoLines(tokens)
|
||||||
lineDigits := len(fmt.Sprintf("%d", len(lines)))
|
lineDigits := len(fmt.Sprintf("%d", len(lines)))
|
||||||
highlightIndex := 0
|
highlightIndex := 0
|
||||||
|
Reference in New Issue
Block a user