mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-08-17 09:50:31 +03:00
feat: deprecate Style.ColorWhitespace
You can get the exact same effect with margins and padding.
This commit is contained in:
parent
e54d9dd05a
commit
7838b4e195
2
set.go
2
set.go
@ -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
|
// 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
|
// desired and expected behavior, but it can be disabled for certain graphic
|
||||||
// effects.
|
// effects.
|
||||||
|
//
|
||||||
|
// Deprecated: Just use margins and padding.
|
||||||
func (s Style) ColorWhitespace(v bool) Style {
|
func (s Style) ColorWhitespace(v bool) Style {
|
||||||
s.set(colorWhitespaceKey, v)
|
s.set(colorWhitespaceKey, v)
|
||||||
return s
|
return s
|
||||||
|
Loading…
Reference in New Issue
Block a user