mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-09-11 22:17:12 +03:00
fix(whitespace): style color profile
This commit is contained in:
parent
8565b7428f
commit
0a35904daa
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user