aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/serialization.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/serialization.lua b/util/serialization.lua
index 1f06ea54..ee4751e2 100644
--- a/util/serialization.lua
+++ b/util/serialization.lua
@@ -96,6 +96,10 @@ local function new(opt)
opt.itemlast = opt.itemlast or "";
opt.equals = opt.equals or "=";
opt.unquoted = true;
+ elseif opt.preset == "pretty" then
+ opt.fatal = false;
+ opt.freeze = true;
+ opt.unquoted = true;
end
local fallback = opt.fallback or opt.fatal == false and nonfatal_fallback or fatal_error;