This commit is contained in:
Burke Libbey 2014-03-04 11:44:09 -05:00
parent ce9bacf7b3
commit e3978aa87c
1 changed files with 7 additions and 1 deletions

View File

@ -69,9 +69,15 @@ func (entry *Entry) Reader() (*bytes.Buffer, error) {
}
}
sort.Strings(keys)
first := true
for _, k := range keys {
v := entry.Data[k]
serialized = append(serialized, []byte(fmt.Sprintf("\x1b[34m%s\x1b[0m='%s' ", k, v))...)
if first {
first = false
} else {
serialized = append(serialized, ' ')
}
serialized = append(serialized, []byte(fmt.Sprintf("\x1b[34m%s\x1b[0m=%v", k, v))...)
}
serialized = append(serialized, []byte(fmt.Sprintf("\x1b[%dm)\x1b[0m", levelColor))...)