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.2.19
diff -u -p -r1.5.8.2.2.11.2.19 ed_readmore.module
--- ed_readmore.module	30 Apr 2010 17:44:07 -0000	1.5.8.2.2.11.2.19
+++ ed_readmore.module	11 Aug 2010 20:15:03 -0000
@@ -225,7 +225,7 @@ function ed_readmore_nodeapi(&$node, $op
           $elements = '(?:'. implode('|', $elements_array) .')';
           
           // Get last position of the last closing marker in teaser.
-          if (preg_match('!</?'. $elements .'[^>]*>$!i', $node->content['body']['#value'], $match, PREG_OFFSET_CAPTURE)) {
+          if (preg_match('!</?'. $elements .'[^>]*>\s*$!i', $node->content['body']['#value'], $match, PREG_OFFSET_CAPTURE)) {
             // Recalculate the position in $teaser. We do this because there may be extra CCK fields appended to the teaser.
             $insert_point = strpos($teaser, $node->content['body']['#value']) + $match[0][1];
             // Insert the link.
