Help - Search - Members - Calendar
Full Version: Blockquote problem
Movable Type Community Forum > Additional Resources > Tips and Tricks
snapdragon
OK, I'm stuck, and the problem is blockquote elements.

When I use blockquote, the blockquote elements wind up inside paragraph elements instead of surrounding them. I need to fix this so that my page will validate. How on earth can I do this?

Details:

I begin my blog entry and type 8 paragraphs of text. No tags yet. Then I put a set of blockquotes around 2 of those paragraphs. The blockquotes are the only HTML elements I've typed.

In MT I leave text formatting set to convert line breaks. (Because the only other option is none, and if I were to use that I'd have to type in my own paragraph tags all over the place; don't want to type paragraph tags.)

Preview looks ok. Then I publish the entry. It displays ok, but the source code shows the blockquote problem described above. And of course the page won't validate due to that problem.

So, any suggestions? I'll be a very happy camper if somebody can tell me how to get around this problem.

UPDATE: I tried the solution at Jeff Szymona's site:
use blockquotes and still validate but it didn't do the trick. I added the macro lines specified on that page... now I'm trying to figure out what the next step is. Template changes?
capoccia
I solved this problem with the regex plugin

http://www.movabletype.org/support/index.p...ST&f=18&t=35862
snapdragon
Thank you, capoccia! I'm delighted to see that the link you gave includes a source code example. I don't understand it all, but will try to work with the code you used and whatever documentation I can find in order to figure out what I need to do for my site. This is great! Thank you, thank you, thank you!
kristine
I use one of the "smart" options with the Format Breaks plugin, and that stops it from nesting P tags around other block elements. Just for another option to the regex. smile.gif

Kristine
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.