Skip to content

Commit

Permalink
Fix row numbering
Browse files Browse the repository at this point in the history
Co-authored-by: Lunny Xiao <[email protected]>
  • Loading branch information
HenriquerPimentel and lunny authored Apr 10, 2024
1 parent c742090 commit 2786c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/markup/csv/csv.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (r Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.W
return err
}

row := 1
row := 0
for {
fields, err := rd.Read()
if err == io.EOF || (row >= maxRows && maxRows != 0) {
Expand Down

0 comments on commit 2786c65

Please sign in to comment.