Make display of shortcut box nicer
authorMatthieu Patou <mat@matws.net>
Thu, 15 Mar 2012 07:38:16 +0000 (00:38 -0700)
committerMatthieu Patou <mat@matws.net>
Thu, 15 Mar 2012 07:38:16 +0000 (00:38 -0700)
buildfarm/web/__init__.py

index ca2c242e20df78eefbd94bc397b7da449f31948c..69639dd336983e875c6922f11e6d1b555e443569 100755 (executable)
@@ -259,8 +259,7 @@ class LogPrettyPrinter(object):
             buf = "%s\n<A href='#%s'>%s</A>" % (buf, tst[1], tst[0])
 
         if not buf == "":
-            buf = "%s\n" % buf
-            divhtml = "".join(make_collapsible_html('testlinks', 'Shortcut to failed tests', buf, self.indice, ""))
+            divhtml = "".join(make_collapsible_html('testlinks', 'Shortcut to failed tests', buf, self.indice, ""))+"\n"
             log = re.sub("Running action\s+test", divhtml, log)
         return "<pre>%s</pre>" % log