diff options
author | Jason Perkins <starkos@industriousone.com> | 2011-05-13 00:00:07 +0400 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2011-05-13 00:00:07 +0400 |
commit | dafe3ba6ec5cbd7dc803317e9c99c2ec645b586f (patch) | |
tree | 7183075dea4098710d19d38ea33819eb835e914d /src/base | |
parent | ddd032645e450eb1bcd39c3aac3080082b2171f2 (diff) |
Ported CodeLite to trees
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/io.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/base/io.lua b/src/base/io.lua index 805e87c..b694adf 100644 --- a/src/base/io.lua +++ b/src/base/io.lua @@ -53,13 +53,16 @@ -- function io.printf(msg, ...) - if (not io.eol) then + if not io.eol then io.eol = "\n" end - - local s + + if not io.indent then + io.indent = "\t" + end + if type(msg) == "number" then - s = string.rep("\t", msg) .. string.format(unpack(arg)) + s = string.rep(io.indent, msg) .. string.format(unpack(arg)) else s = string.format(msg, unpack(arg)) end |