• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7553: Allow newlines and indent around functions and function parameters

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension SpreadSheetPlugin Enhancement Closed   patch 6.0.1

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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) :

1 uno
2 due
3 tre

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

ItemTemplate
Summary Allow newlines and indent around functions and function parameters
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 6.0.0
SVN Range TWiki-6.0.1-trunk, Thu, 07 Aug 2014, build 27861
AppliesTo Extension
Component SpreadSheetPlugin
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:28084 TWikirev:28085 TWikirev:28086 TWikirev:28087
TargetRelease patch
ReleasedIn 6.0.1
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2014-10-06 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback