Sometimes when style is set to 'inline' preg_match() on line 212 of ed_readmore.module fails to find the closing delimiter. Adding trim() to $node->content['body']['#value'] fixes that.
So I suggest instead of
if (preg_match('!</?'. $elements .'[^>]*>$!i', $node->content['body']['#value'], $match, PREG_OFFSET_CAPTURE)) { at line 212 the following:

    $trimmed = trim($node->content['body']['#value']);
    if (preg_match('!</?'. $elements .'[^>]*>$!i', $trimmed, $match, PREG_OFFSET_CAPTURE)) {     

or changing the regexp to accomodate possible whitespace:
'!</?'. $elements .'[^>]*\s*>$!i'

Comments

todd nienkerk’s picture

Title: trim() » Trailing whitespace interferes with placement of Read More link

A very similar patch was committed to the dev branch a few weeks ago:

Does this appear to fix the issue?

gease’s picture

Status: Patch (to be ported) » Closed (duplicate)

Yes. Sorry for having overlooked the existing thread. Marking issue as duplicate then.