Skip to content

Commit

Permalink
fix debug score printing
Browse files Browse the repository at this point in the history
  • Loading branch information
camdencheek committed Apr 18, 2024
1 parent 804d888 commit 34765c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/e2e/e2e_rank_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ func marshalMatches(w io.Writer, rq rankingQuery, q query.Q, files []zoekt.FileM
chunks, hidden := splitAtIndex(f.ChunkMatches, chunkMatchesPerFile)

for _, m := range chunks {
_, _ = fmt.Fprintf(w, "%d:%s%s", m.ContentStart.LineNumber, string(m.Content), addTabIfNonEmpty(m.DebugScore))
_, _ = fmt.Fprintf(w, "%d:%s%s\n", m.ContentStart.LineNumber, strings.TrimRight(string(m.Content), "\n"), addTabIfNonEmpty(m.DebugScore))
}

if len(hidden) > 0 {
Expand Down

0 comments on commit 34765c8

Please sign in to comment.