@ar2rsawseen I was using your extremely useful TextWrap. I noticed that very rarely, a word at the end of the sentence in the TextWrap could be left out entirely.
Looking into the code I saw that the iters were one too few and that was because the line mentioned below was taking the floor of a number like 19.9322, and there not being space for the last word, which was not shown at all.
https://github.com/ar2rsawseen/TextWrap/blob/master/TextWrap.lua#L52Why isn't that ceil instead of floor?
Comments