Hello guys, has anyone done a justify algorithm before?
Here is my problem. I have a string that is very long, and i have limited space on the paper to print it, so i have 4 smaller strings to make it fit nicely.
The problem is that words can be cut when just copying the substrings over, so i have several options:
-Do nothing and leave it ugly
-Search for the last space on the small string and make the word that was going to be cut to appear on the next line
-Pad the small string with spaces and remove the word that would be cut so it looks aligned (justify)
If you have other proposals please do so
Here is my problem. I have a string that is very long, and i have limited space on the paper to print it, so i have 4 smaller strings to make it fit nicely.
The problem is that words can be cut when just copying the substrings over, so i have several options:
-Do nothing and leave it ugly
-Search for the last space on the small string and make the word that was going to be cut to appear on the next line
-Pad the small string with spaces and remove the word that would be cut so it looks aligned (justify)
If you have other proposals please do so
Comment