? booktree-passing_xhtml_validation-719502.patch
? booktree-passing_xhtml_validation-719502.patch2
Index: booktree.css
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/booktree/booktree.css,v
retrieving revision 1.1
diff -u -p -r1.1 booktree.css
--- booktree.css	31 May 2007 14:56:57 -0000	1.1
+++ booktree.css	20 Feb 2010 11:04:41 -0000
@@ -2,7 +2,12 @@ li.booktree
   {
   padding-left: 1.5em;
   }
-  
+
+li.container
+  {
+  background: transparent;
+  }
+ 
 ul.booktree
   {
   padding-left: 1.5em;
Index: booktree.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/booktree/booktree.module,v
retrieving revision 1.11.2.8
diff -u -p -r1.11.2.8 booktree.module
--- booktree.module	23 Oct 2009 23:09:10 -0000	1.11.2.8
+++ booktree.module	20 Feb 2010 11:04:41 -0000
@@ -122,7 +122,7 @@ function booktree_indice() {
 
   $node = node_load(array('nid' => $booktree_start));
   drupal_set_title(check_plain($node->title));
-  $content = '<p>'. check_markup($node->body, $node->format, FALSE) .'</p>';
+  $content = check_markup($node->body, $node->format, FALSE);
   $ricursione = 1;
   $content .= _booktree_mostra_figli($node->book['mlid'], $node->nid, $node->title, $ricursione, $maxricursione, $trimval, $node->book['mlid']);
   return $content; 
@@ -159,7 +159,12 @@ function _booktree_mostra_figli( $mlid, 
     }
     //now write content only if necessary 
     if (strlen($c) > 2) {
-      $content .= "<ul class=\"booktree\">\n". $c ."</ul>\n"; 
+      if ($ricursione === 2) {
+        $content .= "<ul class=\"booktree\">\n". $c ."</ul>\n";
+      }
+      else {
+        $content .= "<li class=\"container\"><ul class=\"booktree\">\n". $c ."</ul></li>\n";
+      }
     }
     return $content;
   }
