Hi All,
I have had code that prints text all lined up line by line with a equal width font, this is fine, until we upgraded and allowed more space for a description.
now the description can be 30 chars long and when it is it prints fine. when it is less than 30 chars it fills the rest with spaces (im using padright for that)
again normally fine, but once it goes over to the next line they stop lining up.
for eg
![Name: odd.JPG
Views: 127
Size: 15.7 KB]()
the first item is padded to equal 30 spaces then we have qty of 1 then its price
the second item has 30 chars of actual letters. the font is equal width so 30 chars and 30 padded chars should be the same no?
please help.
I have had code that prints text all lined up line by line with a equal width font, this is fine, until we upgraded and allowed more space for a description.
now the description can be 30 chars long and when it is it prints fine. when it is less than 30 chars it fills the rest with spaces (im using padright for that)
again normally fine, but once it goes over to the next line they stop lining up.
for eg
the first item is padded to equal 30 spaces then we have qty of 1 then its price
the second item has 30 chars of actual letters. the font is equal width so 30 chars and 30 padded chars should be the same no?
please help.