incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1143115 - /incubator/ooo/site/trunk/lib/view.pm
Date Tue, 05 Jul 2011 15:54:48 GMT
Author: joes
Date: Tue Jul  5 15:54:48 2011
New Revision: 1143115

URL: http://svn.apache.org/viewvc?rev=1143115&view=rev
Log:
support numeric sort with "n" marker, fixed

Modified:
    incubator/ooo/site/trunk/lib/view.pm

Modified: incubator/ooo/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/ooo/site/trunk/lib/view.pm?rev=1143115&r1=1143114&r2=1143115&view=diff
==============================================================================
--- incubator/ooo/site/trunk/lib/view.pm (original)
+++ incubator/ooo/site/trunk/lib/view.pm Tue Jul  5 15:54:48 2011
@@ -178,10 +178,10 @@ sub sort_tables {
     my @out;
     while (defined(local $_ = shift @orig))  {
         push @out, $_;
-        /^(\|[ :v^-]+)+\|$/ or next;
+        /^(\|[ :vn^-]+)+\|$/ or next;
         my($col, $direction, $cur, $numeric);
         $cur = 0;
-        while (/\|([ :v^-]+)/g) {
+        while (/\|([ :vn^-]+)/g) {
             my $data = $1;
             if ($data =~ tr/v/v/) {
                 $col = $cur;



Mime
View raw message