diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 0292fac13b..e527062a32 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -1952,10 +1952,10 @@ function the_generator( $type ) {
function get_the_generator( $type ) {
switch ($type) {
case 'html':
- $gen = '' . "\n";
+ $gen = '';
break;
case 'xhtml':
- $gen = '' . "\n";
+ $gen = '';
break;
case 'atom':
$gen = 'WordPress';