Skip to content

Commit

Permalink
Pad page numbers to ensure consistent order (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jphager2 authored and Girbons committed May 3, 2019
1 parent 890eb6a commit 236dd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (comic *Comic) makeCBRZ() error {
return err
}
// create a tempfile to store the image
tmpfile, err := ioutil.TempFile(tempDir, fmt.Sprintf("%d-image.*.%s", i, tp))
tmpfile, err := ioutil.TempFile(tempDir, fmt.Sprintf("%04d-image.*.%s", i, tp))
defer os.Remove(tmpfile.Name()) // clean up

if err != nil {
Expand Down

0 comments on commit 236dd24

Please sign in to comment.