Skip to content

Commit

Permalink
Item13656: Bump version, other minor fixes.
Browse files Browse the repository at this point in the history
 - Remove ISO-8859 high characters
 - Fix regexes for compatibility with perl 5.22
  • Loading branch information
gac410 committed Sep 1, 2015
1 parent bb28273 commit a859c44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions data/System/TreeBrowserPlugin.txt
Expand Up @@ -460,6 +460,9 @@ See Foswiki:Extensions.TreeBrowserPluginDev.
| Version: | %$VERSION% |
| Release: | %$RELEASE% |
| Change History: | <!-- versions below in reverse order -->&nbsp; |
| 01 Sep 2015: | (V2.2) - Foswikitask:Item4192: Add VarTREEBROWSER topic<br/>\
Foswikitask:Item2941: Close out some old pending work.<br/>\
Foswikitask:Item13656: Update for newer perls, other minor doc issues. |
| 27 Oct 2010: | (v2.1) - Minor rebranding from 'TWiki'. By [[Foswiki:Main.DanDascalescu][Dan Dascalescu]]. |
| 10 Nov 2009: | (v2.0) - Fixed version numbering for configure. By [[Foswiki:Main.IngoKappler][Ingo Kappler]]. |
| 20 Feb 2009: | (v1.9) - Foswiki port. By [[Foswiki:Main.StephaneLenclud][Stephane Lenclud]]. |
Expand Down
11 changes: 6 additions & 5 deletions lib/Foswiki/Plugins/TreeBrowserPlugin.pm
Expand Up @@ -2,7 +2,8 @@
#
# Copyright (C) 2000-2003 Andrea Sterbini, a.sterbini@flashnet.it
# Copyright (C) 2001-2004 Peter Thoeny, peter@thoeny.com
# Copyright (C) 2006-2009 Stéphane Lenclud, foswiki@lenclud.com
# Copyright (C) 2006-2009 Stephane Lenclud, foswiki@lenclud.com
# Copyright (C) 2009-2015 Foswiki Contributors
#
# 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 @@ -37,8 +38,8 @@ use vars qw(
$debug $js
);

$VERSION = '2.1';
$RELEASE = '2.1';
$VERSION = '2.2';
$RELEASE = '2.2';
$pluginName = 'TreeBrowserPlugin';

# =========================
Expand Down Expand Up @@ -79,10 +80,10 @@ sub preRenderingHandler {
if $_[0] =~ /%TREEBROWSER/
; #SL: As far as I can tell this replaces three space characters with tabulation, why?
$_[0] =~
s/%TREEBROWSER{(.*?)}%(([\n\r]+[^\t]{1}[^\n\r]*)*?)(([\n\r]+\t[^\n\r]*)+)/&handleTreeView($1, $2, $4)/ges
s/%TREEBROWSER\{(.*?)\}%(([\n\r]+[^\t]{1}[^\n\r]*)*?)(([\n\r]+\t[^\n\r]*)+)/&handleTreeView($1, $2, $4)/ges
; #original
#SL: Get ride of lonely TREEBROWSER tag.
$_[0] =~ s/%TREEBROWSER{(.*?)}%/&handleLonelyTreeView($1)/ges;
$_[0] =~ s/%TREEBROWSER\{(.*?)\}%/&handleLonelyTreeView($1)/ges;
}
}

Expand Down

0 comments on commit a859c44

Please sign in to comment.