OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Template-Toolkit?expand=0&rev=28
This commit is contained in:
parent
974f474355
commit
ae95f3682c
@ -24,7 +24,6 @@ License: Artistic-1.0
|
|||||||
Group: Development/Libraries/Perl
|
Group: Development/Libraries/Perl
|
||||||
Url: http://cpan.org/dist/Template-Toolkit
|
Url: http://cpan.org/dist/Template-Toolkit
|
||||||
Source: http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit-%{version}.tar.gz
|
Source: http://search.cpan.org/CPAN/authors/id/A/AB/ABW/Template-Toolkit-%{version}.tar.gz
|
||||||
Patch0: https://rt.cpan.org/Public/Ticket/Attachment/1204402/635952/split_pattern.patch
|
|
||||||
#BuildRequires: perl-AppConfig perl-DBI perl-Date-Calc perl-XML-DOM perl-XML-Parser
|
#BuildRequires: perl-AppConfig perl-DBI perl-Date-Calc perl-XML-DOM perl-XML-Parser
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
#
|
#
|
||||||
@ -69,7 +68,6 @@ other offline document systems.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n "Template-Toolkit-%{version}"
|
%setup -q -n "Template-Toolkit-%{version}"
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL
|
perl Makefile.PL
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
--- a/lib/Template/VMethods.pm 2012-02-07 09:06:38.000000000 +0000
|
|
||||||
+++ b/lib/Template/VMethods.pm 2013-04-22 16:58:34.000000000 +0000
|
|
||||||
@@ -261,12 +261,12 @@
|
|
||||||
|
|
||||||
if (defined $limit) {
|
|
||||||
return [ defined $split
|
|
||||||
- ? split($split, $str, $limit)
|
|
||||||
+ ? split("(?:)".$split, $str, $limit)
|
|
||||||
: split(' ', $str, $limit) ];
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return [ defined $split
|
|
||||||
- ? split($split, $str)
|
|
||||||
+ ? split("(?:)".$split, $str)
|
|
||||||
: split(' ', $str) ];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--- a/lib/Template/Plugin/String.pm 2011-12-20 07:41:35.000000000 +0000
|
|
||||||
+++ b/lib/Template/Plugin/String.pm 2013-04-22 16:55:36.000000000 +0000
|
|
||||||
@@ -363,7 +363,7 @@
|
|
||||||
my $split = CORE::shift;
|
|
||||||
my $limit = CORE::shift || 0;
|
|
||||||
$split = '\s+' unless defined $split;
|
|
||||||
- return [ split($split, $self->{ text }, $limit) ];
|
|
||||||
+ return [ split("(?:)".$split, $self->{ text }, $limit) ];
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user