r24962 - in /trunk/liblocale-maketext-lexicon-perl/debian: changelog patches/02more_TT_whitespace_flags.patch patches/series
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Wed Sep 10 15:12:42 UTC 2008
Author: dmn
Date: Wed Sep 10 15:12:35 2008
New Revision: 24962
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=24962
Log:
add 02more_TT_whitespace_flags.patch, adding support to all Template
Toolkit tag modifiers, not only [%- -%]
Added:
trunk/liblocale-maketext-lexicon-perl/debian/patches/02more_TT_whitespace_flags.patch
Modified:
trunk/liblocale-maketext-lexicon-perl/debian/changelog
trunk/liblocale-maketext-lexicon-perl/debian/patches/series
Modified: trunk/liblocale-maketext-lexicon-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblocale-maketext-lexicon-perl/debian/changelog?rev=24962&op=diff
==============================================================================
--- trunk/liblocale-maketext-lexicon-perl/debian/changelog (original)
+++ trunk/liblocale-maketext-lexicon-perl/debian/changelog Wed Sep 10 15:12:35 2008
@@ -1,3 +1,10 @@
+liblocale-maketext-lexicon-perl (0.68-2) UNRELEASED; urgency=low
+
+ * add 02more_TT_whitespace_flags.patch, adding support to all Template
+ Toolkit tag modifiers, not only [%- -%]
+
+ -- Damyan Ivanov <dmn at debian.org> Wed, 10 Sep 2008 18:00:21 +0300
+
liblocale-maketext-lexicon-perl (0.68-1) unstable; urgency=low
* New upstream release.
Added: trunk/liblocale-maketext-lexicon-perl/debian/patches/02more_TT_whitespace_flags.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblocale-maketext-lexicon-perl/debian/patches/02more_TT_whitespace_flags.patch?rev=24962&op=file
==============================================================================
--- trunk/liblocale-maketext-lexicon-perl/debian/patches/02more_TT_whitespace_flags.patch (added)
+++ trunk/liblocale-maketext-lexicon-perl/debian/patches/02more_TT_whitespace_flags.patch Wed Sep 10 15:12:35 2008
@@ -1,0 +1,15 @@
+# Add support to '=', '~' and '+' tag modifiers to the Template Toolkit parser
+# Currently it only supports '-'
+# Tag modifiers example: [%+ |l =%]Localizable text[%- END ~%]
+# Reported upstream as http://rt.cpan.org/Public/Bug/Display.html?id=39158
+--- a/lib/Locale/Maketext/Extract.pm
++++ b/lib/Locale/Maketext/Extract.pm
+@@ -255,7 +255,7 @@ sub extract {
+
+ # Template Toolkit
+ $line = 1; pos($_) = 0;
+- while (m!\G(.*?\[%-?\s*\|l(?:oc)?(.*?)\s*(-?)%\](.*?)\[%(-?)\s*END\s*-?%\])!sg) {
++ while (m!\G(.*?\[%[-=~+]?\s*\|l(?:oc)?(.*?)\s*([-=~+]?)%\](.*?)\[%([-=~+]?)\s*END\s*[-=~+]?%\])!sg) {
+ my ($vars, $trim_start, $str, $trim_end) = ($2, $3, $4, $5);
+ $line += ( () = ($1 =~ /\n/g) ); # cryptocontext!
+ $vars =~ s/^\s*\(//;
Modified: trunk/liblocale-maketext-lexicon-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblocale-maketext-lexicon-perl/debian/patches/series?rev=24962&op=diff
==============================================================================
--- trunk/liblocale-maketext-lexicon-perl/debian/patches/series (original)
+++ trunk/liblocale-maketext-lexicon-perl/debian/patches/series Wed Sep 10 15:12:35 2008
@@ -1,1 +1,2 @@
+02more_TT_whitespace_flags.patch
01needs_chomp
More information about the Pkg-perl-cvs-commits
mailing list