Index: book.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/book.module,v
retrieving revision 1.297
diff -u -F^f -r1.297 book.module
--- book.module 6 May 2005 08:43:21 -0000 1.297
+++ book.module 7 May 2005 07:00:56 -0000
@@ -608,7 +608,8 @@ function book_print($nid = 0, $depth = 1
// Allow modules to change $node->body before viewing.
node_invoke_nodeapi($node, 'view', $node->body, false);
- $output .= '
'. check_plain($node->title) .'
';
+ $output .= '';
+ $output .= '
'. check_plain($node->title) .'
';
if ($node->body) {
$output .= $node->body;
@@ -617,6 +618,7 @@ function book_print($nid = 0, $depth = 1
}
$output .= book_print_recurse($nid, $depth + 1);
+ $output .= "\n";
$html = ''. check_plain($node->title) .'';
$html .= '';
@@ -646,13 +648,15 @@ function book_print_recurse($parent = ''
// Allow modules to change $node->body before viewing.
node_invoke_nodeapi($node, 'view', $node->body, false);
- $output .= ''. check_plain($node->title) .'
';
+ $output .= '';
+ $output .= '
'. check_plain($node->title) .'
';
if ($node->body) {
- $output .= '
';
+ $output .= $node->body;
}
$output .= book_print_recurse($node->nid, $depth + 1);
+ $output .= "
\n";
}
}