If a particularly long node is promoted to the front page, often it is shortened to save space, with a "read more" link at the bottom of the entry. If the node cuts off in the middle of a quote, the quote is not boxed in the preview, and the [quote] tag is visible in plain text.

I see two ways to address this:
1. Force the preview version of the node to include the entire quote, overriding the preview length.
2. Close the quote tag early in the preview version so that the partial quote is still displayed in its own box.

Comments

Anonymous’s picture

It might be best to do this the first way -- force the node preview to display the full quote. If a

tag is encountered within the quote, the quote should be automatically closed. That way, the author can use the

tag to close the quote early if it's way too long -- this method would provide the greatest flexibility.

Sage-1’s picture

It might be best to do this the first way -- force the node preview to display the full quote. If a *break* tag is encountered within the quote, the quote should be automatically closed. That way, the author can use the *break* tag to close the quote early if it's way too long -- this method would provide the greatest flexibility.

jasonwhat’s picture

My quote tags are always visible. Is something wrong? Shouldn't the tags filter out?

TDobes’s picture

This problem can be solved by using htmlcorrector.module and placing it AFTER quote.module in filter order. htmlcorrector will close the quoting div and fix things up. The idea of lengthening the node teaser is neither easy to do nor a user-friendly solution. (I would expect my posts to be trimmed based on the "teaser length" setting... and would not expect that to change no matter what.)

Note that this problem can also be triggered by user error: if a user opens a quote tag and does not include the corresponding end quote tag, the quote div will remain open. The ideal solution to this (IMO) would be to not replace the quote open tag with a div unless a corresponding end quote tag is found.

jasonwhat: Your problem is completely unrelated and should be posted elsewhere. It sounds like you haven't placed the quote module in your input format properly.

Adraeus’s picture

How would the htmlcorrector.module be modified to work with the BBCode.module?

Zen’s picture

Status: Active » Closed (won't fix)

This is a won't fix issue w.r.t. the quote module. Open tags in the teaser should be closed either by core or by another module as TDobes has mentioned. This is a generic issue with teasers.

Thanks
-K