Skip to content

Instantly share code, notes, and snippets.

@shakesoda
Last active August 29, 2015 14:24
Show Gist options
  • Save shakesoda/ad096716d022a6fa0fe8 to your computer and use it in GitHub Desktop.
Save shakesoda/ad096716d022a6fa0fe8 to your computer and use it in GitHub Desktop.
-- 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