Last active
August 29, 2015 14:24
-
-
Save shakesoda/ad096716d022a6fa0fe8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- note: https://raw.githubusercontent.com/alexander-yakushev/awesompd/master/utf8.lua | |
| print = function(...) | |
| local str = "" | |
| local num = select("#", ...) | |
| for i = 1, num do | |
| str = str .. tostring(select(i, ...)) | |
| if i < num then | |
| local len = utf8.len(str) + 1 | |
| local tab = 8 | |
| str = str .. string.rep(" ", tab - len % tab) | |
| end | |
| end | |
| --debug_tagged_print("p", str) | |
| io.write(str) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment