Need help with padding(i think?)
My program uses string.format to print a table out line by line from a file, which works fine, but it doesn't line up well
I tried to fix this by making the end of each column add spaces onto the end, so that they would all be the same length - however I cant figure out how
The closest ive gotten is by using 0 padding, but #1 this only works with integers, and two this only seems to work on the left side
(btw this might not be called padding, im still learning string.format)
27 Replies
⌛
This post has been reserved for your question.
Hey @bed! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
how do you want it to line up
also show the current code
well it does this atm

and this is the line responsible

i want the lines to all be in line but i cant figure out how
Are you using a fixed-width font?
a what
I'll show you something
sorry if that sounded crude i just dk what that is
Do you see a difference between
MMM
iii
and
wait
are you suggesting that
my comic sans font
is what might be causing this
yes
oh my god
it all makes sense now
whats the font name
monoscape
right
for it
the font i use is comic sans
teletype fonts are useful here
i changed it for jokes and didnt realise it could affect code
are teletype fonts ones that dont change
would monoscape work in this case
yes
ah alright
teletype = monospace mostly
you're a life saver man thank you so much
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
you don't want to know how long i spent with that
appreciate u
fun fact
lego star wars uses monoscape
thats cool
Post Closed
This post has been closed by <@1167522887947796590>.