summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-11-02 11:08:21 +0000
committerNick White <git@njw.name>2021-11-02 11:08:21 +0000
commit33c0d65d3e9bf90cc8b462878b253bbbdc936435 (patch)
treef362acda1bae4ec7d355485c5678ce11f39da64d /cmd
parent9d6acd8df4d422cb49b7782222f3f19ee48e5f48 (diff)
rescribe: handle directories with spaces correctly
Diffstat (limited to 'cmd')
-rw-r--r--cmd/rescribe/main.go2
1 files changed, 1 insertions, 1 deletions
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)