Index: modules/book.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/book.module,v
retrieving revision 1.257
diff -u -F^f -r1.257 book.module
--- modules/book.module 8 Oct 2004 11:17:59 -0000 1.257
+++ modules/book.module 8 Oct 2004 21:36:57 -0000
@@ -625,7 +625,7 @@ function book_print($nid = 0, $depth = 1
if (node_hook($node, 'content')) {
$node = node_invoke($node, 'content');
}
- $output .= '
'. $node->title .'
';
+ $output .= "nid\" name=\"$node->nid\" class=\"book-h$depth\">$node->title";
if ($node->body) {
$output .= $node->body;
@@ -633,6 +633,11 @@ function book_print($nid = 0, $depth = 1
}
}
+ $depth += 1;
+ if ($depth > 6) {
+ $depth = 6;
+ }
+
$output .= book_print_recurse($nid, $depth);
$html = ''. $node->title .'';
@@ -660,13 +665,18 @@ function book_print_recurse($parent = ''
if (node_hook($node, 'content')) {
$node = node_invoke($node, 'content');
}
- $output .= ''. $node->title .'
';
+ $output .= "nid\" name=\"$node->nid\" class=\"book-h$depth\">$node->title";
if ($node->body) {
$output .= '';
}
- $output .= book_print_recurse($node->nid, $depth + 1);
+ $depth += 1;
+ if ($depth > 6) {
+ $depth = 6;
+ }
+
+ $output .= book_print_recurse($node->nid, $depth);
}
}