Skip to content

Commit 8bf5ce1

Browse files
committed
fix: apply specific value style
..., if any, for all lines of a multiple lines value
1 parent 4bff402 commit 8bf5ce1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

text.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ func (l *Logger) writeIndent(w io.Writer, str string, indent string, newline boo
4040

4141
_, _ = w.Write([]byte(indent))
4242
val := escapeStringForOutput(str[:nl], false)
43-
val = st.Value.Render(val)
43+
if valueStyle, ok := st.Values[key]; ok {
44+
val = valueStyle.Render(val)
45+
} else {
46+
val = st.Value.Render(val)
47+
}
4448
_, _ = w.Write([]byte(val))
4549
_, _ = w.Write([]byte{'\n'})
4650
str = str[nl+1:]

0 commit comments

Comments
 (0)