Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.314
diff -u -F^f -r1.314 theme.inc
--- includes/theme.inc	1 Sep 2006 08:44:53 -0000	1.314
+++ includes/theme.inc	5 Sep 2006 03:21:33 -0000
@@ -359,7 +359,7 @@ function theme_placeholder($text) {
  *   A string containing the entire HTML page.
  */
 function theme_page($content) {
-  $output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
+  $output  = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
   $output .= '<html xmlns="http://www.w3.org/1999/xhtml">';
   $output .= '<head>';
   $output .= ' <title>'. (drupal_get_title() ? strip_tags(drupal_get_title()) : variable_get('site_name', 'drupal')) .'</title>';
@@ -382,16 +382,12 @@ function theme_page($content) {
   }
 
   $output .= theme('help');
-
   $output .= theme('status_messages');
-
-  $output .= "\n<!-- begin content -->\n";
   $output .= $content;
   $output .= drupal_get_feeds();
-  $output .= "\n<!-- end content -->\n";
 
   $output .= '</td></tr></table>';
-  $output .= theme_closure();
+  $output .= theme('closure');
   $output .= '</body></html>';
 
   return $output;
@@ -822,10 +818,12 @@ function theme_box($title, $content, $re
  *   A string containing the block output.
  */
 function theme_block($block) {
-  $output  = "<div class=\"block block-$block->module\" id=\"block-$block->module-$block->delta\">\n";
-  $output .= " <h2 class=\"title\">$block->subject</h2>\n";
-  $output .= " <div class=\"content\">$block->content</div>\n";
-  $output .= "</div>\n";
+  $output  = '<div class="block block-'. $block->module .'" id="block-'. $block->module .'-'. $block->delta .'">';
+  if ($block->subject) {
+         $output .= '<h2 class="title">'. $block->subject .'</h2>';
+  }
+  $output .= '<div class="content">'. $block->content .'</div>';
+  $output .= '</div>';
   return $output;
 }
 
