Design issue Quoting list items closes the list items outside of the quote block

Chris D

XenForo developer
Staff member
I'm not sure if anything can be done about this, but basically, copy and pasting part of a list and then placing quote tags around it produces something like this:

[quote]
[LIST]
[*]Pushover for XenForo.com Community
[LIST]
[*]Receive push notifications from alerts at XenForo.com[/quote]
[/LIST]
[/LIST]

http://xenforo.com/community/threads/quoting-list-items-oddness.72103/

The end result is empty bullet points outside of the quote tag.

Although this is probably expected as the end quote tag is indeed inside the end list tags, it does look slightly odd. The only way to rectify it is to edit the raw BB code and move the end quote to the appropriate place.

Wasn't sure if there was anything that could be done to prevent that case.
 
Last edited:
It's unlikely that much can be done about it. This is a good example of the challenge of mixing raw BB code in with HTML as you end up with nesting that wouldn't normally happen via a pure DOM structure. The only way to fix it after the fact is to have a parser that understands both BB code and HTML simultaneously, which has huge other challenges as there are cases where BB code is "legitimately" mismatched with the HTML (quotes spanning multiple lines would do this and generate expected output).
 
Back
Top Bottom