internal/cuetxtar: improve eq value formatter
- Add eqCompactThreshold: structs wider than
the threshold are formatted multi-line with
nested indentation; below it they stay
single-line.
- Fix list-kind guard in eqWriteValue: avoid
treating lists as structs even when the
vertex has arcs (e.g. closed lists).
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Ia27d726fe05904ef911245ad98ff084aba0bb78d
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1235383
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>