This is with the Drupal 6 version, so it may be a bug with the porting... but I get errors on nesting of [quote] tags...

If a quote element contains multiple lines, any nested quotes are broken out of the blockquote elements when viewing or previewing the post.

I have the bbcode filter added to the default "filtered html" filter.

CommentFileSizeAuthor
#7 quoteright.jpg18.88 KBSophia
#7 quotewrong.jpg18.24 KBSophia
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

naudefj’s picture

Status: Active » Postponed (maintainer needs more info)

No changes were made to the regular expressions. If the problem is in version 6, it must be in 5 as well.

Can you please provide an example for us to test?

NaheemSays’s picture

Just tested and it is not there in BBCode with Drupal 5.5.

I input this:

[quote]awertngsl/gfnsdg

[quote]sdfgdsfgdfggfdfg

[quote]gfrdghdfsgh sdghdfh 

gfhfsghfgh

[/quote][/quote][/quote]

and in Drupal 5.x I got:

<div class="bb-quote">Quote:<blockquote class="bb-quote-body">awertngsl/gfnsdg
<p></p><div class="bb-quote">Quote:<blockquote class="bb-quote-body">sdfgdsfgdfggfdfg
<p></p><div class="bb-quote">Quote:<blockquote class="bb-quote-body">gfrdghdfsgh sdghdfh 
<p>gfhfsghfgh</p>
<p></p></blockquote></div></blockquote></div></blockquote></div>

In Drupal 6 I got:

<div class="bb-quote">Quote:<br>
<blockquote class="bb-quote-body">awertngsl/gfnsdg</blockquote></div>
<p>
</p><div class="bb-quote">Quote:<br>
<blockquote class="bb-quote-body">sdfgdsfgdfggfdfg</blockquote></div>
<p>
</p><div class="bb-quote">Quote:<br>
<blockquote class="bb-quote-body">gfrdghdfsgh sdghdfh </blockquote></div>

<p>gfhfsghfgh</p>

Is there a way to test without the built in html-crrector?

NaheemSays’s picture

Just found out how to do that. (simple really - go to "input formats" click "configure" next to the one you want to, and uncheck the "HTML corrector" option).

Unchecking this fixes the problem. Probably some bad interaction between these two then.

What order these run in? any way to change that?

NaheemSays’s picture

Title: Problems with nested quote tags and linebreaks » Problems with nested [quote] tags and HTML Corrector
Status: Postponed (maintainer needs more info) » Active

Changed title to reflect where the trouble is.

NaheemSays’s picture

disabling the smart line and paragraph breaks (while keeping the HTML corrector on) seems to fix this.

I will leave this open so you can decide if this is a bug or not. I am no longer sure.

naudefj’s picture

Priority: Normal » Minor
Status: Active » Closed (works as designed)

No, this is not a bug. Please re-open if you think otherwise.

Sophia’s picture

FileSize
18.24 KB
18.88 KB

I do think it is a bug... I disabled smart line/paragraph breaks, so that is not it.

When the html corrector is OFF, nested quotes display correctly, as shown in the source code:

     <div class="content"> 
        <p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></p> 
<p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></p> 
<p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></p> 
<p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></p> 
<p>Test 1</p> 
<p></blockquote></div></p> 
<p>Quote 1</p> 
<p></blockquote></div></p> 
<p>Nested quote 1</p> 
<p></blockquote></div></p> 
<p>Nested quote 2</p> 
<p></blockquote></div></p> 
<p>Nested quote 3</p> 
      </div>

However, when I turn on the html corrector, the source code shows this:

      <div class="content"> 
        <p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></blockquote></div></p> 
<p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></blockquote></div></p> 
<p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></blockquote></div></p> 
<p><div class="bb-quote"><b>Sophia wrote:</b><blockquote class="bb-quote-body"></blockquote></div></p> 
<p>Test 1</p> 
<p></p> 
<p>Quote 1</p> 
<p></p> 
<p>Nested quote 1</p> 
<p></p> 
<p>Nested quote 2</p> 
<p></p> 
<p>Nested quote 3</p> 
      </div>

Unforturtunaly, we had a forum import from phpBB and the html corrector NEEDS to be on for the forum and PM's to show correctly... and even changing the order cannot be done.

Sophia’s picture

Version: 6.x-1.0 » 6.x-1.2
Status: Closed (works as designed) » Active
volongoto’s picture

I also have this problem. And as a matter of fact I also just moved from PhpBB to Drupal. In my case quote breaks when I have line breaks in the quote.

Example:
The following is OK:

[quote]Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam pharetra, ante at consequat consectetur, dolor leo aliquam sapien, at tincidunt turpis orci non erat.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Vivamus condimentum, odio nec varius auctor, orci nibh posuere metus, vitae malesuada tortor lacus in risus.[/quote]

But the following is not:

[quote]Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nullam pharetra, ante at consequat consectetur, dolor leo aliquam sapien, at tincidunt turpis orci non erat.

Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
Vivamus condimentum, odio nec varius auctor, orci nibh posuere metus, vitae malesuada tortor lacus in risus.[/quote]

Is there a planned fix or work around for this?

Thanks in advance.

(I've noticed that my problem is more related to http://drupal.org/node/449772)

z33k3r’s picture

I am having this very problem. If you place the corrector after the BBCode filter, the results for me are not nested and the actual quoted text is not show (though the "USER wrote" still shows). Placing the HTML Corrector before the BBCode filter results in a correctly nested quote container...

Looking for a solution... Hmmm....

z33k3r’s picture

Anybody have any updates with this issue?

z33k3r’s picture

So... nothing...