aboutsummaryrefslogtreecommitdiff
path: root/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to 'utils.lua')
-rw-r--r--utils.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/utils.lua b/utils.lua
index d9d64c3..c78a0c8 100644
--- a/utils.lua
+++ b/utils.lua
@@ -49,9 +49,6 @@ local function repr(x, depth)
return "{"..table.concat(ret, ", ").."}"
end
elseif x_type == 'string' then
- if x == "\n" then
- return "'\\n'"
- end
local escaped = x:gsub("\\", "\\\\"):gsub("\n","\\n"):gsub('"', '\\"')
return '"'..escaped..'"'
else