Skip to content

Commit 4ec0b00

Browse files
authored
Fix stray brackets on status messages (#588)
1 parent 8ab3cd7 commit 4ec0b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterative/utils/logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func hideUnwantedPrefix(levelText, newPrefix, message string) string {
5353
var output string
5454
for _, line := range strings.Split(message, "\n") {
5555
formattedLine := fmt.Sprintf("[%s]\r%s %s", levelText, newPrefix, line)
56-
padding := strings.Repeat(" ", int(math.Max(float64(unwantedPrefixLength-len(stripansi.Strip(line))), 0)))
56+
padding := strings.Repeat(" ", int(math.Max(float64(unwantedPrefixLength-len([]rune(stripansi.Strip(line)))), 0)))
5757
output += formattedLine + padding + "\n"
5858
}
5959

0 commit comments

Comments
 (0)