Index: ed_readmore.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ed_readmore/ed_readmore.module,v
retrieving revision 1.5.8.2.2.11
diff -u -p -r1.5.8.2.2.11 ed_readmore.module
--- ed_readmore.module	20 Apr 2009 22:56:46 -0000	1.5.8.2.2.11
+++ ed_readmore.module	14 Sep 2009 16:14:15 -0000
@@ -108,6 +108,13 @@ function ed_readmore_admin_settings() {
       '#description' => t('Adds %nofollow to the link\'s attributes. Often used for search engine optimization purposes.', array('%nofollow' => 'rel="nofollow"')),
     );
 
+    $form['ed_readmore_formatting']['ed_readmore_ellipsis'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Ellipsis'),
+      '#description' => t('Enter any text you wish displayed between the teaser and the %read_more link when the link is to be displayed inline.', array('%read_more' => t('Read More'))),
+      '#default_value' => variable_get('ed_readmore_ellipsis', '&hellip;&nbsp;'),
+    );
+
   return system_settings_form($form);
 }
 
@@ -148,7 +155,7 @@ function ed_readmore_link_place($teaser,
     // Get last position of the last closing marker
     // If found, insert the link before the marker
     if (preg_match('!</?'. $block_tags .'[^>]*>$!i', $teaser, $match, PREG_OFFSET_CAPTURE)) {
-      $teaser = substr_replace($teaser, '&nbsp;'. ed_readmore_link_render($node, $display), $match[0][1], 0);
+      $teaser = substr_replace($teaser, ed_readmore_link_render($node, $display), $match[0][1], 0);
     }
     else {
       $display = 'after';
@@ -230,13 +237,16 @@ function ed_readmore_theme($existing, $t
  * Theme function that wraps the rendered link.
  */
 function theme_ed_readmore_link($link_text, $link_destination, $link_options, $display) {
-  // Use a <span> (inline) element for links that appear inside the teaser
-  $element = 'span';
-
   // Use a <div> (block-level) element for links appended after the teaser
   if ($display == 'after') {
     $element = 'div';
+    $ellipsis = '';
+  }
+  else {
+    // Use a <span> (inline) element for links that appear inside the teaser
+    $element = 'span';
+    $ellipsis = filter_xss(variable_get('ed_readmore_ellipsis', '&hellip;&nbsp;'));
   }
 
-  return '<'. $element .' class="read-more">'. l($link_text, $link_destination, $link_options) .'</'. $element .'>';
+  return $ellipsis .'<'. $element .' class="read-more">' . l($link_text, $link_destination, $link_options) .'</'. $element .'>';
 }
