This commit is contained in:
Will Charczuk 2016-07-29 18:40:43 -07:00
parent cbc0002d2a
commit a008ebe30e
5 changed files with 27 additions and 10 deletions

View file

@ -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}
}