Foswiki General Assembly will be held on 28th November 2019, 1200 UTC on Freenode IRC channel #foswiki-association. See AgendaTenthGeneralAssembly
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 19 Nov 2019 - 09:46.

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