Subj : fried brain To : Deuce From : MCMLXXIX Date : Tue May 13 2008 09:11 am Re: fried brain By: Deuce to MCMLXXIX on Tue May 13 2008 00:03:20 > Re: fried brain > By: MCMLXXIX to Deuce on Mon May 12 2008 11:10 pm > > > I actually had no idea that could be done with Graphic.js, but it didn't > > seem to work when I tested it anyway. What does word_wrap do? put an \r\n > > in the supplied string at the supplied width? > > word_wrap() splits a string of text into multiple lines on word boundaries s > that no line is longer than the specified width. It will not place a newlin > in the middle of a word unless that word is longer than the line width. > Ok, I actually wasted a lot of time writing my own similar word wrap function, I guess. I didn't realize that word_wrap actually added newline characters to the string as its return value.. makes sense though. Just never thought about it. Should shorten that portion of my code by about 20 lines (yeah....K.I.S.S.) --- þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX) .