Inserting a break after _every_ x characters is a little more complicated than that. As you insert characters into the string, you change the string and consequently its length. So you have to account for the new characters or the final position of the lineFeeds will be wrong.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.