fix: trim newlines when rendering flag values
so the default genre split doesn't break the table
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
||||||
@@ -57,7 +58,8 @@ func main() {
|
|||||||
log.Printf("starting gonic %s\n", gonic.Version)
|
log.Printf("starting gonic %s\n", gonic.Version)
|
||||||
log.Printf("provided config\n")
|
log.Printf("provided config\n")
|
||||||
set.VisitAll(func(f *flag.Flag) {
|
set.VisitAll(func(f *flag.Flag) {
|
||||||
log.Printf(" %-15s %s\n", f.Name, f.Value)
|
value := strings.ReplaceAll(f.Value.String(), "\n", "")
|
||||||
|
log.Printf(" %-15s %s\n", f.Name, value)
|
||||||
})
|
})
|
||||||
|
|
||||||
if _, err := os.Stat(*confMusicPath); os.IsNotExist(err) {
|
if _, err := os.Stat(*confMusicPath); os.IsNotExist(err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user