1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Resolved Bug Reports' started by Chris D, Apr 11, 2014.

  1. Chris D

    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: Apr 11, 2014
    Amaury and Marcus like this.
  2. Amaury

    Amaury Well-Known Member

    I've also come across this, but if I switch to the non-rich text editor and back, it resolves itself.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    For me, that just does this:

    upload_2014-4-11_14-41-6.png

    It depends exactly where you place the tags.
     
    Amaury likes this.
  4. tyteen4a03

    tyteen4a03 Well-Known Member

    This may be a better test case:

    Reply to #1, remove everything but the item 123. Then the bug appears.
     
    Chris D likes this.
  5. Mike

    Mike XenForo Developer Staff Member

    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).
     
    Amaury and Chris D like this.

Share This Page