Skip to content

Commit a94ffd4

Browse files
Fix row numbering
Co-authored-by: Lunny Xiao <[email protected]>
1 parent e130b93 commit a94ffd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markup/csv/csv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (r Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.W
9797
return err
9898
}
9999

100-
row := 1
100+
row := 0
101101
for {
102102
fields, err := rd.Read()
103103
if err == io.EOF || (row >= maxRows && maxRows != 0) {

0 commit comments

Comments
 (0)