fix(whitespace): style color profile

This commit is contained in:
Ayman Bagabas 2022-10-04 22:18:39 -04:00
parent 8565b7428f
commit 0a35904daa

View File

@ -18,7 +18,10 @@ type whitespace struct {
// matters, it you'r using WithWhitespaceRenderer, make sure it comes first as
// other options might depend on it.
func newWhitespace(r *Renderer, opts ...WhitespaceOption) *whitespace {
w := &whitespace{re: r}
w := &whitespace{
re: r,
style: r.ColorProfile().String(),
}
for _, opt := range opts {
opt(w)
}