Foswiki on GitHub is open for business! Next release meeting: Monday October 13, 1300Z

Item10346: MAKETEXT renders 0 if arg is empty

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal Closed Engine I18N, MAKETEXT  
Let's say I have a combination of MAKETEXT and FORMFIELD, and the field returns an empty string (because the field is empty):

%MAKETEXT{"Component:[_1]" args="%FORMFIELD{"Component"}%"}%

renders as:


For some reason MAKETEXT inserts zeroes for missing arguments, and it is even documented in the code: "fill omitted args with zeros" in line 32.

Why not empty strings?

-- ArthurClemens - 12 Feb 2011

Topic revision: r22 - 16 Apr 2011, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License