Skip to content

Commit

Permalink
Item1998: merged Darryl Green's fix for RIGHT
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@8445 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Aug 9, 2010
1 parent 1f93439 commit 7beb1e4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
11 changes: 6 additions & 5 deletions SpreadSheetPlugin/data/System/SpreadSheetPlugin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ The last row is defined as:

Above table is created manually. Another Plugin could build the table dynamically, e.g. by pulling data out of a bug tracking system. The Spreadsheet Plugin can be used to display table data statistics.

---++ Plugin Settings
---++ Settings

You can override some default settings in the plugin by setting the following [[%SYSTEMWEB%.PreferenceSettings][preferences]].

Expand All @@ -760,17 +760,18 @@ to the east of Greenwich. The setting is present for compatibility. | 0 |

Note that the =DONTSPACE= global preference overrides the =SPREADSHEETPLUGIN_DONTSPACE= preference for historical reasons.

---++ Plugin Installation Instructions
---++ Installation Instructions
%$INSTALL_INSTRUCTIONS%
* Test if the "Total" in the first table in this topic is correct.

---++ Plugin Info
---++ Info

| Copyright: | Copyright (C) 2001-2007 Peter Thoeny, peter@thoeny.org and TWiki Contributors; © 2008-2009 Foswiki Contributors |
| Copyright: | Copyright (C) 2001-2007 Peter Thoeny, peter@thoeny.org and TWiki Contributors; © 2008-2010 Foswiki Contributors |
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| Version: | %$VERSION% |
| Release: | %$RELEASE% |
| Change History: | <!-- specify latest version first -->&nbsp; |
| 09 Aug 2010: | Foswikitask:Item1998: fix for $RIGHT |
| 04 Aug 2010: | Foswikitask:Item9415: Minor documentation updates |
| 21 Jul 2010: | Foswikitask:Item5163: prevent misrendering of empty rows, Foswikitask:Item9400: correct $LIST for cells containing commas, as per doc |
| 29 Dec 2009: | Foswikitask:Item2301: added =$nop= to $LISTJOIN() for better empty parameter |
Expand Down Expand Up @@ -823,7 +824,7 @@ Note that the =DONTSPACE= global preference overrides the =SPREADSHEETPLUGIN_DON
| 01 Jun 2001: | Fixed insecure dependencies for $MIN() and $MAX() |
| 16 Apr 2001: | Fixed div by 0 bug in $AVERAGE() |
| 17 Mar 2001: | Initial version with $ABOVE(), $AVERAGE(), $COLUMN(), $COUNTITEMS(), $EVAL(), $INT(), $LEFT(), $LOWER(), $MAX(), $MIN(), $ROW(), $SUM(), $T(), $UPPER() |
| Plugin Home: | http://foswiki.org/Extensions/%TOPIC% |
| Home: | http://foswiki.org/Extensions/%TOPIC% |
| Support: | http://foswiki.org/Support/%TOPIC% |

---
Expand Down
2 changes: 1 addition & 1 deletion SpreadSheetPlugin/lib/Foswiki/Plugins/SpreadSheetPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use vars qw(
);

our $VERSION = '$Rev$';
our $RELEASE = '04 Aug 2010';
our $RELEASE = '09 Aug 2010';
our $NO_PREFS_IN_TOPIC = 1;
our $SHORTDESCRIPTION =
'Add spreadsheet calculations like "$SUM($ABOVE())" to Foswiki tables and other topic text';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,8 @@ s/\$([A-Z]+)$escToken([0-9]+)\((.*?)$escToken\2\)/&doFunc($1,$3)/geo;
}
elsif ( $theFunc eq "RIGHT" ) {
$i = $rPos + 1;
$result = "R$i:C$cPos..R$i:C32000";
my $c = $cPos + 2;
$result = "R$i:C$c..R$i:C32000";

}
elsif ( $theFunc eq "DEF" ) {
Expand Down

0 comments on commit 7beb1e4

Please sign in to comment.