# HG changeset patch
# User Sascha Teichmann <teichmann@intevation.de>
# Date 1285487006 0
# Node ID f208b139190bdfea4f965867f1298877f5605018
# Parent  283154e189d9b828258830225f837b6c837dc71d
sawmill: Made html head elements HTML 4.01 compatible.
Small tweak while finding tree packager in detail view.

diff -r 283154e189d9 -r f208b139190b contrib/sawmill/web/details.py
--- a/contrib/sawmill/web/details.py	Thu Sep 23 09:59:06 2010 +0000
+++ b/contrib/sawmill/web/details.py	Sun Sep 26 07:43:26 2010 +0000
@@ -142,7 +142,7 @@
     found = None
     for d in os.listdir(TREEPKG_DIR):
         dp = os.path.join(TREEPKG_DIR, d)
-        if os.path.isdir(dp) and d == treepkg:
+        if d == treepkg and os.path.isdir(dp):
             found = dp
             break
 
diff -r 283154e189d9 -r f208b139190b contrib/sawmill/web/templates/header.inc
--- a/contrib/sawmill/web/templates/header.inc	Thu Sep 23 09:59:06 2010 +0000
+++ b/contrib/sawmill/web/templates/header.inc	Sun Sep 26 07:43:26 2010 +0000
@@ -4,8 +4,8 @@
 %>
 <head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-  <link rel="icon" href="img/favicon.ico" type="image/x-icon" />
-  <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen" />
+  <link rel="icon" href="img/favicon.ico" type="image/x-icon">
+  <link rel="stylesheet" href="styles/style.css" type="text/css" media="screen">
   <title>S&auml;gewerk - <%= escape(page_title) %></title>
 </head>
 <body>