[Xfce4-commits] <archive:master> Generate valid xhtml.

Nick Schermer noreply at xfce.org
Sat Nov 12 19:24:01 CET 2011


Updating branch refs/heads/master
         to a9d668779e6463870221d0d96c2981b75d3d8dac (commit)
       from d47ef44a90168f27204b5178a9d84c4fcd505aeb (commit)

commit a9d668779e6463870221d0d96c2981b75d3d8dac
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Nov 12 19:23:27 2011 +0100

    Generate valid xhtml.

 fancyindex/views/index.haml    |    5 +++--
 fancyindex/views/notfound.haml |    3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/fancyindex/views/index.haml b/fancyindex/views/index.haml
index 989eba5..6e05e72 100644
--- a/fancyindex/views/index.haml
+++ b/fancyindex/views/index.haml
@@ -1,4 +1,5 @@
-%html
+!!!
+%html{:xmlns => 'http://www.w3.org/1999/xhtml'}
   %head
     %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}/
     %title Index of #{@archive.href}
@@ -56,7 +57,7 @@
           %tr
             %td
               %img{:src => "/public/#{item.iconname}.png", :alt => item.iconname}
-            %td{:nowrap => 'nowarp'}
+            %td{:nowrap => 'nowrap'}
               %a{:href => item.href } #{item.name}
             %td #{item.mtime}
             %td #{item.size}
diff --git a/fancyindex/views/notfound.haml b/fancyindex/views/notfound.haml
index 6768aa2..02a16eb 100644
--- a/fancyindex/views/notfound.haml
+++ b/fancyindex/views/notfound.haml
@@ -1,4 +1,5 @@
-%html
+!!!
+%html{:xmlns => 'http://www.w3.org/1999/xhtml'}
   %head
     %meta{'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8'}/
     %title Not Found


More information about the Xfce4-commits mailing list