cue/format: change default tab width from 8 to 4
We carried over Go's default tab width of 8,
but Marcel clarified earlier this week that he always intended
CUE to use a default tab width of 4.
As further proof that this is what most people expect anyway,
the majority of editors and syntax renderers configure both Go and CUE
with a tab width of 4, not 8, because 8 is too wide for most people.
This only affects tabwriter column alignment of fields and comments
when the lines have different amounts of tab indentation,
which should never happen as we don't align syntax
across different levels of indentation.
Fixes #4290.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I4726a99c83826c6ab2bf0774845a0bbf065919ab
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1233618
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>