зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b7834b4312
Коммит
820c52f4eb
|
@ -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}++;
|
||||
|
|
Загрузка…
Ссылка в новой задаче