New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
You are here: Foswiki>Tasks Web>Item10474 (08 Jul 2015, MichaelDaum)Edit Attach

Item10474: Foswiki::Func inline examples are not valid examples usable with copy/paste.

Priority: Normal
Current State: Closed
Released In: 2.0.0
Target Release: major
Applies To: Engine
Component: Documentation, FoswikiFunc
Reported By: SvenDowideit
Waiting For:
Last Change By: MichaelDaum
for eg

--- a/core/lib/Foswiki/
+++ b/core/lib/Foswiki/
@@ -1915,7 +1915,7 @@ use Error qw( :try );
 my( $meta, $text ) = Foswiki::Func::readTopic( $web, $topic );
 $text =~ s/APPLE/ORANGE/g;
 try {
-    saveTopic( $web, $topic, $meta, $text );
+    Foswiki::Func::saveTopic( $web, $topic, $meta, $text );
 } catch Foswiki::AccessControlException with {
     my $e = shift;
     # see documentation on Foswiki::AccessControlException

kinda pointlessly incorrect.

-- SvenDowideit - 12 Mar 2011

Any reason this can't be merged into 1.1 branch?

-- GeorgeClark - 11 Apr 2011

ItemTemplate edit

Summary Foswiki::Func inline examples are not valid examples usable with copy/paste.
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component Documentation, FoswikiFunc
Priority Normal
CurrentState Closed
Checkins distro:81c337d6dbd1
TargetRelease major
ReleasedIn 2.0.0
Topic revision: r8 - 08 Jul 2015, MichaelDaum - This page was cached on 21 Jun 2018 - 21:02.

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