Francois Gouget : winetest: Make sure the 'name' attribute does not start with a digit so it is compatible with the 'id' one. This fixes an HTML warning on pages containing multiple 2000 or 2003 reports .

Alexandre Julliard julliard at winehq.org
Mon Mar 17 10:57:08 CDT 2008


Module: tools
Branch: master
Commit: 785cb32228093c0b5688bdd2ca3bda9b26196140
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=785cb32228093c0b5688bdd2ca3bda9b26196140

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Mar 17 12:17:17 2008 +0100

winetest: Make sure the 'name' attribute does not start with a digit so it is compatible with the 'id' one. This fixes an HTML warning on pages containing multiple 2000 or 2003 reports.

---

 winetest/gather |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/winetest/gather b/winetest/gather
index b0e4d7d..8ec43bd 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -226,7 +226,7 @@ foreach my $group (@groups) {
     if (exists $group->{reports}) {
         my $report_count = @{$group->{reports}};
         if ($report_count > 1) {
-            $header .= "      <th><a href=\"#$group->{name}\">$group->{name}<br><small>$report_count reports</small></a></th>\n";
+            $header .= "      <th><a href=\"#group_$group->{name}\">$group->{name}<br><small>$report_count reports</small></a></th>\n";
         } else {
             my $report = $group->{reports}->[0];
             # If dllinfo.txt exist we use a different layout (new style report)
@@ -372,7 +372,7 @@ EOF
         } elsif (@{$group->{reports}} == 1) {
             singletest($group->{reports}->[0], $testname, $group->{name});
         } else {
-            my $href = "href=\"#$group->{name}\"";
+            my $href = "href=\"#group_$group->{name}\"";
             if (exists $group->{extrema}->{$testname}) {
                 my ($min,$max) = @{$group->{extrema}->{$testname}};
                 my $todos = (exists $group->{todo}->{$testname})?"todo_":"";
@@ -428,7 +428,7 @@ EOF
 
     print OUT <<"EOF";
 <hr>
-<h2><a name="$group->{name}">$group->{name} differences</a></h2>
+<h2><a name="group_$group->{name}">$group->{name} differences</a></h2>
 <table class="report">
   <thead>
     <tr>




More information about the wine-cvs mailing list