Michael Stefaniuc : transl: Print a newline after each table row.

Alexandre Julliard julliard at winehq.org
Tue Apr 20 10:50:18 CDT 2010


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Apr 20 02:36:18 2010 +0200

transl: Print a newline after each table row.

This makes the generated HTML more pleasing to the eye when
troubleshooting.

---

 transl/index.php    |    2 +-
 transl/lib.php      |    2 +-
 transl/resource.php |    6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/transl/index.php b/transl/index.php
index 66071ad..7c4ce00 100644
--- a/transl/index.php
+++ b/transl/index.php
@@ -76,7 +76,7 @@ function draw_bar($tr, $err, $warn, $sum)
         echo "<img src=\"img/bar5.gif\" height=\"15\" width=\"$warn_len\" alt=\"warnings\">";
     if ($err_len > 0)
 	echo "<img src=\"img/bar1.gif\" height=\"15\" width=\"$err_len\" alt=\"errors\">";
-    echo "</td></tr>";
+    echo "</td></tr>\n";
 }
 
 function nicesort($a, $b)
diff --git a/transl/lib.php b/transl/lib.php
index aceee55..14da399 100644
--- a/transl/lib.php
+++ b/transl/lib.php
@@ -149,7 +149,7 @@ function show_sublangs($id)
     $sublangs = get_sublangs($id);
     foreach ($sublangs as $key => $value)
     {
-        echo "<tr><td>".gen_lang_a($key).get_lang_name($key)."</a></td></tr>";
+        echo "<tr><td>".gen_lang_a($key).get_lang_name($key)."</a></td></tr>\n";
     }
     echo "</table>\n";
     echo "</div>";
diff --git a/transl/resource.php b/transl/resource.php
index 4d3b61f..c54c115 100644
--- a/transl/resource.php
+++ b/transl/resource.php
@@ -53,11 +53,11 @@ if ($compare || ($pedantic && $warnings != 0))
         echo "<tr class=\"subheader\"><td colspan=\"5\" style=\"text-align: right\">";
         echo "<small>".gen_resource_a($lang, $resfile, $type, $id, FALSE);
         echo "&lt;&lt; Hide compare with ".get_locale_name($MASTER_LANGUAGE)."</a></small>";
-        echo "</td></tr>";
+        echo "</td></tr>\n";
     }
 
     echo "<tr class=\"subheader\"><td>id</td><td>&nbsp;</td><td>".get_lang_name($lang).
-         "</td><td>&nbsp;</td><td>".get_lang_name($MASTER_LANGUAGE)."</td></tr>";
+         "</td><td>&nbsp;</td><td>".get_lang_name($MASTER_LANGUAGE)."</td></tr>\n";
 
     $res->dump($master_res);
 }
@@ -68,7 +68,7 @@ else
         echo "<tr class=\"subheader\"><td colspan=\"3\" style=\"text-align: right\">";
         echo "<small>".gen_resource_a($lang, $resfile, $type, $id, TRUE);
         echo "Compare with ".get_locale_name($MASTER_LANGUAGE)." &gt;&gt;</a></small>";
-        echo "</td></tr>";
+        echo "</td></tr>\n";
     }
 
     $res->dump(NULL);




More information about the wine-cvs mailing list