tweaks.
This commit is contained in:
parent
cbc0002d2a
commit
a008ebe30e
5 changed files with 27 additions and 10 deletions
6
text.go
6
text.go
|
|
@ -1,6 +1,9 @@
|
|||
package chart
|
||||
|
||||
import "strings"
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// TextHorizontalAlign is an enum for the horizontal alignment options.
|
||||
type textHorizontalAlign int
|
||||
|
|
@ -71,6 +74,7 @@ func (t text) WrapFit(r Renderer, value string, width int, style Style) []string
|
|||
case TextWrapWord:
|
||||
return t.WrapFitWord(r, value, width, style)
|
||||
}
|
||||
fmt.Printf("text wrap: %#v\n", style.TextWrap)
|
||||
return []string{value}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue