Item11359: FORMATLIST cannot count with empty format string

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FilterPlugin
Branches: trunk
Reported By: OliverKrueger
Waiting For:
Last Change By: OliverKrueger
%FORMATLIST{"One,Two,Three" format="" footer="$count"}%

I'm not sure, if this is a feature request or a bug report. I'd like to count items in a list via FORMATLIST. This works perfectly, if format="$1" or the like but not, if the output is empty.

-- OliverKrueger - 16 Dec 2011

The above %FORMATLIST will produce an empty list which isn't displayed by default. Try this instead

%FORMATLIST{"One,Two,Three" format="<!-- -->" separator="" footer="$count"}%

-- MichaelDaum - 16 Dec 2011

Already thought about it. The ouput of FORMATLIST is the input of another macro, and even simple spaces are too noisy. frown, sad smile

-- OliverKrueger - 16 Dec 2011

Fixed in latest release.

-- MichaelDaum - 10 Jan 2012

Thanks alot. smile

-- OliverKrueger - 10 Jan 2012

ItemTemplate edit

Summary FORMATLIST cannot count with empty format string
ReportedBy OliverKrueger
Codebase
SVN Range
AppliesTo Extension
Component FilterPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins FilterPlugin:2b97b8c221ef
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches trunk
trunkCheckins FilterPlugin:2b97b8c221ef
Release01x01Checkins
Topic revision: r6 - 10 Jan 2012, OliverKrueger
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy