Skip to content

Commit

Permalink
converter: Print to os.Stdout (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshineplan authored Oct 30, 2024
1 parent 0833c97 commit 85ac410
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions converter/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func loadImages(root string, pdf bool) (imgs []string) {
return
case <-ticker.C:
m := message
fmt.Fprintf(os.Stderr, "\r%s\r%s", strings.Repeat(" ", width), m)
fmt.Fprintf(os.Stdout, "\r%s\r%s", strings.Repeat(" ", width), m)
width = len(m)
}
}
Expand All @@ -65,7 +65,7 @@ func loadImages(root string, pdf bool) (imgs []string) {
return nil
})
close(done)
fmt.Fprintf(os.Stderr, "\r%s\r", strings.Repeat(" ", width))
fmt.Fprintf(os.Stdout, "\r%s\r", strings.Repeat(" ", width))
return
}

Expand Down

0 comments on commit 85ac410

Please sign in to comment.