feat: deprecate Style.ColorWhitespace

You can get the exact same effect with margins and padding.
This commit is contained in:
Christian Rocha 2024-05-31 13:14:38 -04:00
parent e54d9dd05a
commit 7838b4e195

2
set.go
View File

@ -321,6 +321,8 @@ func (s Style) PaddingBottom(i int) Style {
// applied to the padding. This is true by default as it's more than likely the
// desired and expected behavior, but it can be disabled for certain graphic
// effects.
//
// Deprecated: Just use margins and padding.
func (s Style) ColorWhitespace(v bool) Style {
s.set(colorWhitespaceKey, v)
return s