[[[ Prevent the RSS feed from unconditionally appending a hyphen to the title even when there is no slogan to follow the hyphen. This is as discussed in http://drupal.org/node/38975, and this patch applies against http://cvs.drupal.org/viewcvs/drupal/drupal/modules/node.module?rev=1.555. * modules/node.module (node_feed): Set a spacer according to slogan's presence. ]]] --- modules/node.module.ORIG 2005-11-26 19:07:56.288582736 -0600 +++ modules/node.module 2005-11-26 19:08:02.336663288 -0600 @@ -1446,9 +1446,14 @@ $items .= format_rss_item($item->title, $link, $item_text, $extra); } + $slogan = variable_get('site_slogan', ''); + $spacer = ' - '; + if (empty($slogan)) { + $spacer = ''; + } $channel_defaults = array( 'version' => '2.0', - 'title' => variable_get('site_name', 'drupal') .' - '. variable_get('site_slogan', ''), + 'title' => variable_get('site_name', 'drupal') . $spacer . $slogan, 'link' => $base_url, 'description' => variable_get('site_mission', ''), 'language' => $locale