Open
Description
When rendering a long string with styles applied in a "box" the text formatting is lost when lines wrap.
Attached output + example code to reproduce (uses lipgloss 0.5.0)
Code to reproduce
func main() {
parts := strings.Split("aaaaaaaaaaaaaaaaaaaaaaaaaa.bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.ccccccccccccccccccccccccccccc", ".")
formatted := fmt.Sprintf("%s.%s.%s",
lipgloss.NewStyle().Foreground(lipgloss.Color("#874BFD")).Render(parts[0]),
lipgloss.NewStyle().Foreground(lipgloss.Color("#ABE9B3")).Render(parts[1]),
lipgloss.NewStyle().Foreground(lipgloss.Color("#89DCEB")).Render(parts[2]))
dialogBoxStyle := lipgloss.NewStyle().
Border(lipgloss.RoundedBorder()).
Padding(1, 1).
Width(40).
BorderTop(true).
BorderLeft(true).
BorderRight(true).
BorderBottom(true)
inp := dialogBoxStyle.BorderForeground(lipgloss.Color("#df8e1d")).Render(formatted)
fmt.Println(inp)
}