diff --git a/includes/menu.inc b/includes/menu.inc
index 1fd93ccdd65cf4247fcf4d5072f379e457adf06d..d4e727a285b51bd76e0b9b32624a19a6a1cfbf52 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -1067,7 +1067,7 @@ function theme_menu_item($link, $has_children, $menu = '', $in_active_trail = FA
   if ($in_active_trail) {
     $class .= ' active-trail';
   }
-  return '<li class="'. $class .'">'. $link . $menu .'</li>'."\n";
+  return '<li class="'. $class .'">'. $link . $menu ."</li>\n";
 }
 
 /**
@@ -1076,7 +1076,7 @@ function theme_menu_item($link, $has_children, $menu = '', $in_active_trail = FA
  * @ingroup themeable
  */
 function theme_menu_local_task($link, $active = FALSE) {
-  return '<li '. ($active ? 'class="active" ' : '') .'>'. $link .'</li>';
+  return '<li '. ($active ? 'class="active" ' : '') .'>'. $link ."</li>\n";
 }
 
 /**
diff --git a/includes/theme.inc b/includes/theme.inc
index 26f1eaa27d432354cb1002ac9109bac776dc6f9f..51957186be733f39ec6740ee14ee6a4e740ab3f8 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1429,7 +1429,7 @@ function theme_item_list($items = array(), $title = NULL, $type = 'ul', $attribu
       if ($i == $num_items - 1) {
         $attributes['class'] = empty($attributes['class']) ? 'last' : ($attributes['class'] .' last');
       }
-      $output .= '<li'. drupal_attributes($attributes) .'>'. $data .'</li>';
+      $output .= '<li'. drupal_attributes($attributes) .'>'. $data ."</li>\n";
     }
     $output .= "</$type>";
   }
diff --git a/modules/blog/blog.pages.inc b/modules/blog/blog.pages.inc
index ecbfb6b8c2c357acc88c29a26864f010c9a2b750..a0b54967db17481b7210d9942bcd0747972d3864 100644
--- a/modules/blog/blog.pages.inc
+++ b/modules/blog/blog.pages.inc
@@ -20,7 +20,7 @@ function blog_page_user($account) {
     $items[] = l(t('Post new blog entry.'), "node/add/blog");
   }
   else if ($account->uid == $user->uid) {
-    $items[] = t('You are not allowed to post a new blog entry.') .'</li>';
+    $items[] = t('You are not allowed to post a new blog entry.');
   }
 
   $output = theme('item_list', $items);