Index: ed_readmore.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ed_readmore/ed_readmore.module,v
retrieving revision 1.8
diff -u -p -r1.8 ed_readmore.module
--- ed_readmore.module	21 Apr 2009 21:02:56 -0000	1.8
+++ ed_readmore.module	21 Aug 2009 18:31:28 -0000
@@ -147,7 +147,7 @@ function ed_readmore_link_place($teaser,
     $block_tags = '(?:p)';
     // 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)) {
+    if (preg_match('!</?'. $block_tags .'[^>]*>(</[A-Za-z]+>)*$!i', $teaser, $match, PREG_OFFSET_CAPTURE)) {
       $teaser = substr_replace($teaser, '&nbsp;'. ed_readmore_link_render($node, $display), $match[0][1], 0);
     }
     else {
