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.

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

--- a/core/lib/Foswiki/Func.pm
+++ b/core/lib/Foswiki/Func.pm
@@ -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
WaitingFor
Checkins distro:81c337d6dbd1
TargetRelease major
ReleasedIn 2.0.0
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r8 - 08 Jul 2015, 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