According to what I’ve read Lua follows the printf style of string formatting. According to that you should be able to use a variable for the field width by using an asterisk like this: “%*s”, variable.
But I get this error:
invalid option ‘%*’ to ‘format’
Does anyone know if this works in Lua or how to use a variable for the field width?