# HG changeset patch # User Kim Alvefur # Date 1686324398 -7200 # Node ID 03f1509a6105ec396acf23d96da3ffb7b4f7d48b # Parent 0b650a54ff9a681fda84d5463086ce7de7468a5a util.serialization: Add a "pretty" preset This is the config I want 90% of the time when just showing data in the console or so. diff -r 0b650a54ff9a -r 03f1509a6105 util/serialization.lua --- a/util/serialization.lua Wed Jun 07 16:56:53 2023 +0200 +++ b/util/serialization.lua Fri Jun 09 17:26:38 2023 +0200 @@ -96,6 +96,10 @@ 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;