summaryrefslogtreecommitdiff
path: root/cmd/rescribe
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-01-10 16:34:33 +0000
committerNick White <git@njw.name>2022-01-10 16:34:33 +0000
commit2ddba0eac540e9b15647590429c82437e8980f53 (patch)
treec30c14ba44b30d291d5cdd484a5b0e00b4deb51f /cmd/rescribe
parent218ba0c8dadc48307a3d714fe2f725eb0072b7e2 (diff)
rescribe: ensure books with a space in the name are handled correctly in the gui
Diffstat (limited to 'cmd/rescribe')
-rw-r--r--cmd/rescribe/gui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index 7ae5465..b359cf3 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -300,7 +300,7 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
bookdir := dir.Text
savedir := dir.Text
- bookname := filepath.Base(dir.Text)
+ bookname := strings.ReplaceAll(filepath.Base(dir.Text), " ", "_")
f, err := os.Stat(bookdir)
if err != nil {