incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1142839 - /incubator/ooo/site/trunk/lib/view.pm
Date Mon, 04 Jul 2011 22:48:09 GMT
Author: joes
Date: Mon Jul  4 22:48:09 2011
New Revision: 1142839

URL: http://svn.apache.org/viewvc?rev=1142839&view=rev
Log:
preserve trailing blank lines

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=1142839&r1=1142838&r2=1142839&view=diff
==============================================================================
--- incubator/ooo/site/trunk/lib/view.pm (original)
+++ incubator/ooo/site/trunk/lib/view.pm Mon Jul  4 22:48:09 2011
@@ -174,7 +174,7 @@ sub breadcrumbs {
 # arbitrary number of tables supported, but only one col per table may be sorted
 
 sub sort_tables {
-    my @orig = split /\n/, shift;
+    my @orig = split /\n/, shift, -1;
     my @out;
     while (defined(local $_ = shift @orig))  {
         push @out, $_;
@@ -208,7 +208,7 @@ sub sort_tables {
         push @out, map "| " . join(" | ", @$_) . " |", @rows;
     }
 
-    return join "\n", @out, "";
+    return join "\n", @out;
 }
 
 1;



Mime
View raw message