get_the_content does not properly trim split post (read more link)
|Reported by:||Ateo||Owned by:|
When you utilize <!--more--> in a post to effectively add a 'read more' link the end to the end of the post linking to the full article (on home page stream), the function fails to trim the chunk to be displayed leaving the trailing new line maker (\n) thus when default filter wpautop is applied, it naturally converts that trailing maker into a br tag, as it should.
This affects formatting/placement of the 'read more' link. I personally want my 'read more' link immediately following my text. This isn't possible without trimming the chunk of text. As such, the 'read more' link is bumped to the next line down. =(
Anyways, the fix is super super easy! I swear.
$output = trim($output);
This is from WP version 2.9.2. Not sure in which version this became apparent, if not always.