[dev] note about strings with spaces being a potential problem with pretty printer; they arent re-parse friendly at the moment

This commit is contained in:
Max Cahill 2020-07-22 20:51:54 +10:00
parent a18691f229
commit 8c5fa157c7

View File

@ -114,7 +114,7 @@ function stringx.pretty(input, indent, after)
for k, v in pairs(input) do
if not seen[k] then
--encapsulate anything that's not a string
--todo: also keywords
--todo: also keywords and strings with spaces
if type(k) ~= "string" then
k = "[" .. tostring(k) .. "]"
end