Improved auto-formatting for case-eq
Not plannedUsing the example from our Sesam docs, current auto-formatting gives this:
["case-eq", "_S.country", "NO",
["add", "country", "Norway"], "SE",
["add", "country", "Sweden"],
["add", "country", "Other"]
]
This is difficult to read properly.
Suggestion:
["case-eq", "_S.country",
"NO", ["add", "country", "Norway"],
"SE", ["add", "country", "Sweden"],
["add", "country", "Other"]
]
This formatting style is in line with our Sesam docs examples and is much more readable.
-
Official comment
We are aware of there being formatting issues with some of the DTL functions. The current formatting code does not have function-specific rules, but rather a set of generic ones. This would clearly be a nice improvement, but we're planning some architectural changes in the editor before this will be prioritized in the short term.
Comment actions
Please sign in to leave a comment.
Comments
1 comment