/ Published in: Lua
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
--- Pads str to length len with char from left string.rpad = function(str, len, char) if char == nil then char = ' ' end return string.rep(char, len - #str) .. str end