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() {
//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()
+4 -3
View File
@@ -1,14 +1,15 @@
package cmd
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/exec"
"slices"
"sort"
"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"
)
@@ -49,7 +50,7 @@ func UsersCmd() *cobra.Command {
bat.Stderr = os.Stderr
bat.Run()
},
}
}
}
func init() {