To ensure that the separate words 'read more' never get broken in the middle from wraping I styled the SPAN containing the 'read more' link as white-space:nowrap.

Unfortunately, if the last character in the teaser is not a space whenever the read more link gets wrapped it drags the previous word along with it.

To fix this, just print a SPACE before the '<SPAN'.

$read_more = ' <span...'

- Kent

Comments

todd nienkerk’s picture

Title: nowrap creates orphan » Change default separator to a single space (was: nowrap creates orphan)
Status: Active » Fixed

This need is fulfilled with the "separator" field. Whatever you specify in this field on your site's Read More configuration page is prepended to the <span> that wraps the link. Simply add a space character to this field, and you're set.

I have, however, noticed that the UI currently says a space will be added if the field is left blank. This is incorrect, and I will fix the instructions shortly.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.