<cfquery name="GetStory" datasource="qNEWS">
select top 1 *
where ID = '#ID#'
and online = 1
order by id desc
<cfset defaultbreakpos = len(GetStory.Story_body)*.6>
<cfif NOT mid(GetStory.story_body, defaultbreakpos, 1) is " ">
<cfset temppos = refindnocase("[\s]", reverse(left(GetStory.story_body, defaultbreakpos)))>
<cfset breakpos = defaultbreakpos-temppos+1>
<cfset breakpos = defaultbreakpos>
<cfset toptext = left(GetStory.story_body, breakpos)>
#ParagraphFormat(toptext)# <a href="#GetStory.URL_LINK#" target="_blank">Read more</a>
The "Read more" line needs to be on the same line as the last line of the story_body. As it is now, it's always moved down one line.
I don't want to remove all the line feeds in the story as they're needed. I only want to remove the last line break, if possible, or do this a different way.
Show me how to do this with my code snippet.