aboutsummaryrefslogtreecommitdiffstats
path: root/util/format.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/format.lua')
-rw-r--r--util/format.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/format.lua b/util/format.lua
index 1cd8d81b..533f3a82 100644
--- a/util/format.lua
+++ b/util/format.lua
@@ -108,7 +108,7 @@ local function format(formatstring, ...)
if t == "string" and option ~= "p" then
if not valid_utf8(arg) then
option = "q";
- else
+ elseif option ~= "q" then -- gets fully escaped in the next block
args[i] = arg:gsub("[%z\1-\8\11-\31\127]", control_symbols):gsub("\n\t?", "\n\t");
return spec;
end