Patch for CollectionAsTable/Row

While working on the Statistics stuff, I noticed that although
Elements/CollectionAsTable/ParseFormat will accept formats with STYLE
specified, Elements/CollectionAsTable/Row ignores the specified value,
even though it handles the ALIGN tag. Attached is a unified diff adding
support for STYLE.

Note that Row also ignores CLASS, probably because it’s putting out it’s
own class. I didn’t change that, but it seems simple if it’s
desired…

— share/html/Elements/CollectionAsTable/Row 2005-04-17
20:45:00.000000000 -0500
+++ local/html/Elements/CollectionAsTable/Row 2005-09-14
15:43:40.000000000 -0500
@@ -71,6 +71,7 @@
$item++;
$m->out(’<td class=“collection-as-table” ');
$m->out( ‘align="’ . $column->{align} . ‘"’ ) if ( $column->{align}
);

  • $m->out( ‘style="’ . $column->{style} . ‘"’ ) if ( $column->{style}
    );
    $m->out(’>’);
    foreach my $subcol ( @{ $column->{output} } ) {
    if ( $subcol =~ /^(.*?)$/o ) {

Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.com