From 2ddba0eac540e9b15647590429c82437e8980f53 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 10 Jan 2022 16:34:33 +0000 Subject: rescribe: ensure books with a space in the name are handled correctly in the gui --- cmd/rescribe/gui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.1-24-ge1ad