changeset 703:4e27920699b2 0.6.x

0.6dev: Merging [778:780] from trunk.
author osimons
date Mon, 19 Oct 2009 11:19:22 +0000
parents 4928dfbd8e79
children 1cd31329874f
files bitten/htdocs/bitten.css bitten/master.py bitten/templates/bitten_summary_lint.html
diffstat 3 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/htdocs/bitten.css
+++ b/bitten/htdocs/bitten.css
@@ -155,7 +155,6 @@
 #content.build tbody.totals td, #content.build tbody.totals th {
   font-weight: bold;
 }
-#content.build table.tests tr.failed { background: #d99; }
 #content.build table.tests tr.failed th,
 #content.build table.tests tr.failed td { font-weight: bold; }
 #content.build table.tests tr.failed :link,
@@ -167,7 +166,8 @@
   margin: 0; padding-left: 32px; padding-top: 5px; text-align: left; font-weight: normal;
 }
 #content.build table.tests tr th p.details span {
-  white-space: pre; font-family: monospace; font-weight: normal; color: #666;
+  white-space: pre; font-family: monospace; font-weight: normal; font-size: smaller;
+  color: #666;
 }
 #content.build table.tests .fixture { display: inline; }
 #content.build table.tests tr.failed th .fixture a { 
--- a/bitten/master.py
+++ b/bitten/master.py
@@ -138,6 +138,7 @@
         """ Formats and sends the response, raising ``RequestDone``. """
         req.send_response(code)
         headers = headers or {}
+        headers.setdefault('Content-Length', len(body))
         for header in headers:
             req.send_header(header, headers[header])
         req.write(body)
--- a/bitten/templates/bitten_summary_lint.html
+++ b/bitten/templates/bitten_summary_lint.html
@@ -2,7 +2,9 @@
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
-      xmlns:py="http://genshi.edgewall.org/">
+      xmlns:py="http://genshi.edgewall.org/"
+      py:strip="">
+<body py:strip="">
 
 <h3>Code Lint</h3>
 <table class="listing lint">
@@ -43,4 +45,5 @@
  </tr></tbody>
 </table>
 
+</body>
 </html>
Copyright (C) 2012-2017 Edgewall Software