Skip to content

Commit

Permalink
Item12888: fix unit test problems introduced in the last table-relate…
Browse files Browse the repository at this point in the history
…d checkin
  • Loading branch information
Crawford Currie committed Jun 4, 2015
1 parent aaa4355 commit 97967b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Tables/Parser.pm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package Foswiki::Tables::Parser;
use strict;
use Assert;

use constant TRACE => 1;
use constant TRACE => 0;

BEGIN {
if ( $Foswiki::cfg{UseLocale} ) {
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Tables/Reader.pm
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ sub early_line {
# Process generic (EDIT)?TABLE attributes.
# There may be several on the line (yuck)
my $ok = 0;
while ( $line =~ /%(TABLE|$this->{macro})(\{.*?\})?%/ ) {
while ( $line =~ /%(TABLE|$this->{macro})(\{.*?\})?%/s ) {
$ok ||= $this->_early_line( $line, $1 );
}
push( @{ $this->{waiting} }, $line ) if $ok && length($line);
Expand Down
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Tables/Table.pm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ sub makeConsistent {

my $minRows = $this->getHeaderRows() + $this->getFooterRows();
if ( $this->totalRows() < $minRows ) {
if ( $this->getHeaderRow() ) {
if ( $this->getHeaderRows() ) {
while ( $this->totalRows() < $this->getHeaderRows() ) {
my @vals =
map { "*$_->{initial_value}*" } @{ $this->{colTypes} };
Expand Down

0 comments on commit 97967b0

Please sign in to comment.