• 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.

Item5896: Extra break(s) from %IF% in SEARCH, but $IF is OK

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal No Action Required   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


VarIF seems to be throwing out extra carriage returns when used in a SEARCH, unlike $IF in Plugins.SpreadsheetPlugin.

See my examples of (06 Aug 2008) and (07 Aug 2008) in TWiki:Support.SearchMethodToUse.

-- TWiki:Main/SeanCMorgan - 07 Aug 2008

You are not comparing apples with apples. First, the %IF statement does not support $createusername. Use info.author. Second, if the search matches a topic that was not authored by SeanCMorgan, your %IF statement generates an empty string, while the %CALC generates a <nop>. Since (1) search results are printed one per line, (2) TWiki specifies that an empty line gives a para break, and (3) you are generating empty lines in the search output when you use %IF, but lines with <nop> when you use %CALC, then you get what you asked for.

No bug here.

-- CrawfordCurrie - 08 Aug 2008

Summary Extra break(s) from %IF% in SEARCH, but $IF is OK
ReportedBy TWiki:Main.SeanCMorgan
Codebase 4.1.1
SVN Range TWiki-5.0.0, Sun, 03 Aug 2008, build 17280
AppliesTo Engine
Priority Normal
CurrentState No Action Required
TargetRelease n/a
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2008-08-08 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback