[interchange-cvs] interchange - heins modified code/UserTag/table_organize.tag

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Mon Jan 13 19:16:01 2003


User:      heins
Date:      2003-01-14 00:15:20 GMT
Modified:  code/UserTag table_organize.tag
Log:
* Adjust math on min_rows, makes it work in all circumstances.

Revision  Changes    Path
1.5       +1 -1      interchange/code/UserTag/table_organize.tag


rev 1.5, prev_rev 1.4
Index: table_organize.tag
===================================================================
RCS file: /var/cvs/interchange/code/UserTag/table_organize.tag,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- table_organize.tag	8 Dec 2002 06:44:22 -0000	1.4
+++ table_organize.tag	14 Jan 2003 00:15:20 -0000	1.5
@@ -192,7 +192,7 @@
 		push @cells, $1 while $body =~ s:(<td\b.*?</td>)::is;
 	}
 
-	while ($opt->{min_rows} and ($opt->{min_rows} * $cols) > scalar(@cells) ) {
+	while ($opt->{min_rows} and ($opt->{min_rows} * ($cols - 1)) > scalar(@cells) ) {
 		$cols--;
 		last if $cols == 1;
 	}