You are here: Foswiki>Tasks Web>Item11198 (09 Sep 2016, MichaelDaum)Edit Attach

Item11198: SUBST not handling empty text properly

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: FilterPlugin
Branches:
Reported By: KipLubliner
Waiting For:
Last Change By: MichaelDaum
I am trying to use %SUBST to translate space characters to non-breaking spaces.

%SUBST{text="an expression ..." pattern=" " format=" "}%

This works well if the expression resolves to a non-empty string, however if the expression resolves to an empty string, trouble ensues:

%SUBST{text="" pattern=" " format=" "}%

EXPECTED: empty string

ACTUAL: It include the topic being viewed in the output of the SUBST call.


Can't reproduce anymore. Seems fixed by now. Please reopen in case the error still persists.

-- Main.MichaelDaum - 09 Sep 2016 - 09:36

 

ItemTemplate edit

Summary SUBST not handling empty text properly
ReportedBy KipLubliner
Codebase 1.1.2
SVN Range 8284
AppliesTo Extension
Component FilterPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r2 - 09 Sep 2016, MichaelDaum
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