gka/d3-jetpack

wordwrap removing spaces

1wheel opened this issue · 3 comments

d3.wordwrap('Make permanent the look-thru rule for related...', 25)
> ["Make permanent the look-", "thrurule for related..."]

Only happens on strings with hyphens

Also ran into this problem. Hopefully my PR fixes it :)

thanks!