From 33c0d65d3e9bf90cc8b462878b253bbbdc936435 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 2 Nov 2021 11:08:21 +0000 Subject: rescribe: handle directories with spaces correctly --- cmd/rescribe/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 3944ace..03d9663 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -244,7 +244,7 @@ These training files are included in rescribe, and are always available: } bookdir := flag.Arg(0) - bookname := filepath.Base(bookdir) + bookname := strings.ReplaceAll(filepath.Base(bookdir), " ", "_") savedir := bookdir if flag.NArg() > 1 { savedir = flag.Arg(1) -- cgit v1.2.1-24-ge1ad