refactor: change user tui printout to remove weird line missalignment

This commit is contained in:
Slug-Boi
2024-10-28 12:24:26 +01:00
parent 246db95414
commit 301b8ca084
2 changed files with 35 additions and 34 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ func loadData(author_file string) {
for scanner.Scan() { for scanner.Scan() {
//very hacky it basically just ensure glamour doesn't format the email //very hacky it basically just ensure glamour doesn't format the email
cnt.WriteString(":\b" + scanner.Text() + "\n") cnt.WriteString(" " + scanner.Text() + "\n")
} }
content = cnt.String() content = cnt.String()
+4 -3
View File
@@ -1,14 +1,15 @@
package cmd package cmd
import ( import (
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/tui"
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/utils"
"os" "os"
"os/exec" "os/exec"
"slices" "slices"
"sort" "sort"
"strings" "strings"
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/tui"
"github.com/Slug-Boi/cocommit/src_code/go_src/cmd/utils"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
@@ -49,7 +50,7 @@ func UsersCmd() *cobra.Command {
bat.Stderr = os.Stderr bat.Stderr = os.Stderr
bat.Run() bat.Run()
}, },
} }
} }
func init() { func init() {