Patch for bug 252137: tabular reports shouldn't be broken if a row/col/tbl header begins with an underscore; patch by Rob Siklos <rsiklos@adexa.com>; r=gerv, a=justdave.

This commit is contained in:
jocuri%softhome.net 2004-10-24 23:25:54 +00:00
Родитель b7834b4312
Коммит 820c52f4eb
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -174,6 +174,12 @@ while (MoreSQLData()) {
$col = "" if ($col eq $columns{''});
$tbl = "" if ($tbl eq $columns{''});
# account for the fact that names may start with '_' or '.'. Change this
# so the template doesn't hide hash elements with those keys
$row =~ s/^([._])/ $1/;
$col =~ s/^([._])/ $1/;
$tbl =~ s/^([._])/ $1/;
$data{$tbl}{$col}{$row}++;
$names{"col"}{$col}++;
$names{"row"}{$row}++;