You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by jo...@apache.org on 2011/07/05 17:54:48 UTC

svn commit: r1143115 - /incubator/ooo/site/trunk/lib/view.pm

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;