summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-11-22 11:24:33 +0000
committerNick White <git@njw.name>2022-11-22 11:24:33 +0000
commitfa1e5fa6d5468a25195463426921607bcc7768bc (patch)
treefb0d095d40fa0315e9b61a5a3f90c38826c8ef0c
parent20ef8951d6cdd2b74d6889f84d2f8b73737e7cc4 (diff)
gofmt
-rw-r--r--cmd/rescribe/gui.go4
-rw-r--r--cmd/rescribe/gui_test.go1
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index d1a992d..91cdb4d 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -78,7 +78,7 @@ func copyStdoutToChan() (chan rune, error) {
// copyStderrToChan creates a pipe to copy anything written
// to the file also to a rune channel.
// TODO: would be nice to merge this with copyStdoutToChan,
-// but a naive version using *os.File didn't work.
+// but a naive version using *os.File didn't work.
func copyStderrToChan() (chan rune, error) {
c := make(chan rune)
@@ -558,7 +558,7 @@ func startGui(log *log.Logger, cmd string, gbookcmd string, training string, tes
})
abortbtn.Disable()
- gobtn.OnTapped = func(){
+ gobtn.OnTapped = func() {
start(ctx, log, cmd, tessdir, gbookcmd, dir.Text, trainingOpts.Selected, myWindow, logarea, progressBar, abortbtn, !wipe.Checked, bigpdf.Checked, disableWidgets)
}
diff --git a/cmd/rescribe/gui_test.go b/cmd/rescribe/gui_test.go
index 3c90000..99a924f 100644
--- a/cmd/rescribe/gui_test.go
+++ b/cmd/rescribe/gui_test.go
@@ -8,6 +8,7 @@ import (
"fmt"
"strings"
"testing"
+
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/widget"
)