fix: fixed output of users command to be readable

This commit is contained in:
Slug-Boi
2024-10-20 23:16:13 +02:00
parent 7f5a3bcca6
commit 580f56555f
2 changed files with 10 additions and 9 deletions
-3
View File
@@ -1,3 +0,0 @@
syntax for the test file
au|August|August-Brandt|augustbrandt170@gmail.com
al|Alex|Alex-itu|lolk@itu.dk
+7 -3
View File
@@ -86,10 +86,14 @@ func Entry_US(author_file string) {
scanner := bufio.NewScanner(file) scanner := bufio.NewScanner(file)
var cnt strings.Builder var cnt strings.Builder
for scanner.Scan() { scanner.Scan()
cnt.WriteString(scanner.Text() + "\n") header := scanner.Text()
} cnt.WriteString(header + "\n")
for scanner.Scan() {
//very hacky it basically just ensure glamour doesn't format the email
cnt.WriteString(":\b" + scanner.Text() + "\n")
}
content = cnt.String() content = cnt.String()