diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/format.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/format.lua b/util/format.lua index 2a29c4f3..43097e6a 100644 --- a/util/format.lua +++ b/util/format.lua @@ -79,7 +79,7 @@ local function format(formatstring, ...) if arg == nil then args[i] = "(nil)"; else - args[i] = tostring(arg); + args[i] = tostring(arg):gsub("[%z\1-\8\11-\31\127]", control_symbols):gsub("\n\t?", "\n\t"); end formatstring = formatstring .. " [%s]" end |