Closed (won't fix)
Project:
Read More Link (Drupal 6 and earlier)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Mar 2007 at 14:44 UTC
Updated:
9 Apr 2009 at 00:09 UTC
Using the default setting should place the Read More anchor at the end of the teaser, but on certain posts I am seeing the link placed before the end of the teaser.
For example, on a post with a short paragraph followed by an H3 header where the H3 is just before the automatic cut-off, the Read More is placed at the end of the paragraph, not just after the H3 tag as would be expected.
Comments
Comment #1
mcurry commentedWould you mind attaching the source content (html or whatever) from the post in question, or a test posting that demonstrates this problem?
Also, I need to know what your 'teaser length' settings are, if you are not using
for manual break positioning.
I believe I know why this is happening, I need a good test case.
A cheesy workaround, if you are using
is to always place a
...
around the last bit of text (or create an empty
..
section before the
Comment #2
mcurry commentedOops, sorry about that - the invisible text is my bad... forgot to escape the HTML entities...
Would you mind attaching the source content (html or whatever) from the post in question, or a test posting that demonstrates this problem?
Also, I need to know what your 'teaser length' settings are, if you are not using for manual break positioning.
I believe I know why this is happening, I need a good test case.
A cheesy workaround, if you are using is to always place a
<p>...</p>around the last bit of text (or create an empty
<p>..</p>section just before the
<!--break-->Comment #3
mcurry commentedComment #4
teledyn commentedHere is the original text:
In this particular case it made more sense to place the break flag just before the h4, but this is an example that clearly demonstrates the flag being placed before the end of the preview text segment. I have seen it happen with other code as well, but this was a recent example so it was easy to find.
The teaser length is 800, and here's the generated HTML code as it appears in a preview:
Unfortunately my site is frequented by predominantly non-technical people, so it's not really possible to enforce coding standards to their HTML (and the wysiayg editors were very unpopular); for that reason, I'm going to try one of the alternate settings for positioning the link, but I just thought you'd like to know about this placement bug.
Comment #5
mcurry commentedYes, this is a general problem - if the last item in a teaser isn't a
then the read more link is placed in an unexpected location. I'll work on this ASAP.
Comment #6
mcurry commentedargh... html...
Yes, this is a general problem - if the last html tag in a teaser isn't a
</p>then the read more link is placed in an unexpected location. I'll work on this ASAP.Comment #7
teledyn commentedSince my input filters actually do place the
<p>tags around that paragraph, could the issue be solved by making the ReadMore into an input filter that can be folded into a custom filter and placed after the auto-paragraph-break filter? That might solve my problem since I always auto-P the member posts.Comment #8
mcurry commentedThat's an interesting idea, and I might investigate it next time I'm in the code.
I would expect that approach to create its own challenges and problems, though, so I will try for a simpler solution to this problem.
Comment #9
mcurry commentednon-critical.
Comment #10
todd nienkerk commentedThe 5.x branch is no longer supported. If this is still a problem, please reopen.