Skip to content

Commit df5fef8

Browse files
authored
Update gitdiff.go
1 parent 27c78e1 commit df5fef8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/gitdiff/gitdiff.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ func (hcd *HighlightCodeDiff) convertToPlaceholders(htmlCode string) string {
410410

411411
if placeholder != 0 {
412412
res.WriteRune(placeholder) // use the placeholder to replace the tag
413-
} else {
414-
res.WriteString(tag) // unfortunately, all private use runes has been exhausted, no more placeholder could be used, so do not convert the tag
415-
}
413+
}
414+
// else: unfortunately, all private use runes has been exhausted, no more placeholder could be used, no more converting
415+
// usually, the exhausting won't occur in real cases, the used placeholders are not more than the CSS classes outputted by chroma.
416416
}
417417
// write the remaining string
418418
res.WriteString(htmlCode)

0 commit comments

Comments
 (0)