diff --git a/cmd/add.go b/cmd/add.go index cc0caaa..9ebdf73 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -31,7 +31,7 @@ var ( bookmark.Tags = make([]model.Tag, len(tags)) for i, tag := range tags { - bookmark.Tags[i].Name = tag + bookmark.Tags[i].Name = strings.TrimSpace(tag) } // Save new bookmark