Skip to content

Commit

Permalink
Item8039: fixes for foswiki/compat
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FilterPlugin@1807 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Jan 7, 2009
1 parent a9b3bcd commit 2b77a89
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
18 changes: 8 additions & 10 deletions data/TWiki/FilterPlugin.txt
Expand Up @@ -13,7 +13,7 @@
<table style="float:right">
<tr>
<td><img src="%ATTACHURLPATH%/wikiringlogo40x40.png"></td>
<td><a href="http://wikiring.de" title="Make your Wiki ring!" style="text-decoration:none">
<td><a href="http://wikiring.com" title="Make your Wiki ring!" style="text-decoration:none">
Powered by <br /> <nop>WikiRing Consultants </a>
</td>
</tr>
Expand Down Expand Up @@ -45,7 +45,7 @@ insert a topic by processing its content.
* =skip="&lt;n>"= skip the first n occurences
* =exclude="..."=: skip occurences that match this regular expression
* sort="on,off,alpha,num" order of the formatted items (default "off")
* =expand="on,off"=: toggle expansion of TWiki markup before filtering
* =expand="on,off"=: toggle expansion of markup before filtering
(defaults to =on=)

---+++ STARTSUBST, STOPSUBST
Expand Down Expand Up @@ -147,13 +147,13 @@ to a navigation to jump to the groups within the index.
<div class="text"><div class="comment">
This is a first comment.
</div><div class="posted">
-- TWiki:Main.MichaelDaum on 22 Aug 2005
-- Michael Daum on 22 Aug 2005
</div></div>

<div class="text"><div class="comment">
This is a second comment.
</div><div class="posted">
-- TWiki:Main.MichaelDaum on 22 Aug 2005
-- Michael Daum on 22 Aug 2005
</div></div>

---+++ Extract table data
Expand Down Expand Up @@ -185,15 +185,15 @@ compare with [[http://en.wikipedia.org/wiki/Category:Philosophy_articles_needing
* Unzip it in your twiki installation directory. Content:
| *File:* | *Description:* |
%$MANIFEST%
* Visit =configure= in your TWiki installation, and enable the plugin in the {Plugins} section.
* Visit =configure= in your installation, and enable the plugin in the {Plugins} section.

---++ Plugin Info
<!-- provided for compatibility only
* Set SHORTDESCRIPTION = Substitute and extract information from content by using regular expressions
-->

| Plugin Author: | TWiki:Main.MichaelDaum |
| Copyright &copy;: | 2005-2008, Michael Daum http://michaeldaumconsulting.com |
| Plugin Author: | Michael Daum |
| Copyright &copy;: | 2005-2009, Michael Daum http://michaeldaumconsulting.com |
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) |
| Plugin Version: | v1.70 |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
Expand Down Expand Up @@ -221,7 +221,7 @@ compare with [[http://en.wikipedia.org/wiki/Category:Philosophy_articles_needing
| 06 Dec 2005: | fixed SUBST not to cut off the rest of the text |
| 09 Nov 2005: | fixed deep recursion using =expand="on"= |
| 22 Aug 2005: | Initial version; added =expand= toggle |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.024 |
| Dependency: | $TWiki::Plugins::VERSION 1.024 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
Expand All @@ -230,6 +230,4 @@ compare with [[http://en.wikipedia.org/wiki/Category:Philosophy_articles_needing
| Feedback: | Foswiki:Extensions/%TOPIC%Dev |
| Appraisal: | Foswiki:Extensions/%TOPIC%Appraisal |

-- TWiki:Main.MichaelDaum - 08 Oct 2008

%META:FILEATTACHMENT{name="wikiringlogo40x40.png" attr="h" autoattached="1" comment="" date="1189788323" path="wikiringlogo40x40.png" size="2571" user="ProjectContributor" version="1"}%
4 changes: 2 additions & 2 deletions lib/TWiki/Plugins/FilterPlugin/Core.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2005-2008 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2005-2009 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -293,7 +293,7 @@ sub handleMakeIndex {
if ($theSort eq 'nocase') {
$crit = uc($crit);
}
$crit =~ s/[^$TWiki::regex{mixedAlphaNum}]//go;
$crit =~ s/[^$mixedAlphaNum]//go;
my $group = substr($crit, 0, 1);

my $itemFormat = $theFormat;
Expand Down
2 changes: 1 addition & 1 deletion lib/TWiki/Plugins/FilterPlugin/MANIFEST
@@ -1,4 +1,4 @@
data/TWiki/FilterPlugin.txt 0644
lib/TWiki/Plugins/FilterPlugin/Core.pm 0644
lib/TWiki/Plugins/FilterPlugin.pm 0644
lib/TWiki/Plugins/FilterPlugin/Core.pm 0644
pub/TWiki/FilterPlugin/wikiringlogo40x40.png 0644
4 changes: 2 additions & 2 deletions lib/TWiki/Plugins/FilterPlugin/build.pl
Expand Up @@ -8,10 +8,10 @@ BEGIN
}
}

use TWiki::Contrib::Build;
use Foswiki::Contrib::Build;

# Create the build object
$build = new TWiki::Contrib::Build( 'FilterPlugin' );
$build = new Foswiki::Contrib::Build( 'FilterPlugin' );

# Build the target on the command line, or the default target
$build->build($build->{target});
Expand Down

0 comments on commit 2b77a89

Please sign in to comment.