searched this forum and see some ppl referring to the format command, but I'm having major problems with it on using it right
I need to notice the users the following line several times:
| date | user | item
but user can be different each time, so the layout gets all messed up like:
| date | user1 | item
| date | user152 | item
Either use a fixed width (9 chars or whatever is your nick or handle length) of pass trough every element of the list looking for the longest. Then use that for formating length. I am not aware of any other way to do that except to script it as i said.
Ignorant and lazy people will save 30 minutes by chosing simple config file. Smart ones will save 3000 minutes of *everyone's* time by opting for complete config file.
ok, say I wanna use a fixed width of 10 chars..
how do I apply that format function to it so that "bobby" becomes "bobby "...
or do I have to make a procedure for usernames that adds spaces?
Look up the format command in the tcl manual for more info on controlling the output, but basically for what you want, you do %XXXs, which means "a string XXX chars wide".