inspect.lua
inspect.lua copied to clipboard
Looks strange with `inspect {{ x = 1 }}`
The result of inspect {{ x = 1 }} is
{ {
x = 1
} }
The indentation is not aligned, is this a special case or bug?
You did table inside table, where's the problem
You did table inside table, where's the problem
It may be a common special case of this structure:
inspect { { x = 1 }, { x = 2 }, { x = 3 } }
Is it possible to keep their performance consistent?
However, I have no strong demand for this. If considering workload, cost performance or difficult ambiguity, I can accept the maintenance status.
You might not get exactly the output you want, but tweaking options.newline and options.indent might help.
See #58 for reference.