After finding this code snippet from here
'{0: <16}'.format('Hi')
I was able to right pad strings - which is what I'm after. I've written a function to deal with multi-line strings, but I a feeling there's a quicker, more Pythonic method: The strings get padded with "." just as an example.
#!/usr/bin/python
def r_pad_string (s):
listy = s.splitlines()
w = 0
ss = ""
for i in range(0, len(listy)):
l = len(str(listy[i]))
if l > w:
w = l
for i in range(0, len(listy)):
pad = str(listy[i]).ljust(w, ".")
ss += pad + "\n"
return ss
myStr1 = " ######\n" \
" ########\n" \
"## ## ##\n" \
"## ### ###\n" \
"##########\n" \
"##########\n" \
"## ## ##\n" \
"# # #"
myStr2 = """Spoons
are
great!!!"""
print r_pad_string(myStr1)
print r_pad_string(myStr2)