When you have a complex formula with many functions it is useful to introduce newlines and indent so that users can visually see the structure.
Example:
%CALCULATE{
$LISTJOIN(
$n,
$LISTEACH(
| $index | $item |,
uno, due, tre
)
)
}%
Which renders as the follows (test case) :
See also related
Item7552: Allow newlines in triple-quoted strings.
--
TWiki:Main/PeterThoeny
- 2014-09-23
This is now in SVN trunk and 6.0 branch; released in Plugins web as well.
--
TWiki:Main.PeterThoeny
- 2014-09-23
NOTE: No change in white-space is done if there are no newlines. This enhancement is compatible with the existing behavior, e.g. it should not break existing code.
--
TWiki:Main.PeterThoeny
- 2014-09-23