• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Table BBCode Parsing Bug

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Table BBCode Parsing Bug

    • Issue Tools
      • View Changes
    1. issueid=4670 June 6, 2016 11:31 AM
      Gossamer Gossamer is offline
      Junior Member
      Table BBCode Parsing Bug

      I noticed a small bug when nesting a center bbcode tag inside of a table cell. If you do not have an empty line between the center closing tag and the "|-", then it won't read the |- and puts the following row on the same row. However, if you put an empty line there, then it generates correctly.

      I haven't had this issue with any other bbcode yet. Only the alignment ones.

      Working example that results in this:
      Code:
      [TABLE]
      |-
      | class="tcat" | Rank
      | class="tcat" | Description
      |-
      | Untrained
      | description goes here
      
      [center]Untrained humans cannot use this skill[/center]
      
      |-
      | 1: Novice
      | Selection of first focus + 2 starting abilities
      |-
      | 2: Practiced
      | asdfasdfasdf
      |-
      | 3: Professional
      | asdfasdgasd
      |-
      | 4: Expert
      | asdfasdfasdf
      |-
      | 5: Master
      | asdfasdfasd
      |-
      [/TABLE]
      Broken Example that results in this:
      Code:
      [TABLE]
      |-
      | class="tcat" | Rank
      | class="tcat" | Description
      |-
      | Untrained
      | description goes here
      
      [center]Untrained humans cannot use this skill[/center]
      |-
      | 1: Novice
      | Selection of first focus + 2 starting abilities
      |-
      | 2: Practiced
      | asdfasdfasdf
      |-
      | 3: Professional
      | asdfasdgasd
      |-
      | 4: Expert
      | asdfasdfasdf
      |-
      | 5: Master
      | asdfasdfasd
      |-
      [/TABLE]
    Issue Details
    Issue Number 4670
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.10
    Fixed Version 4.0.12
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 6, 2016 4:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      Removal of a single line break after CENTER and other alignment tags is an expected feature of those tags, based on the default behavior that vBulletin provides. If you use those tags inside a TABLE, it is only possible to prevent that default behavior in wiki content, because we have control over the parser that gets used. In non-wiki content, the standard parser is invoked in such a way that it is not possible to modify this behavior. Unfortunately, this is a quirk in the vBulletin software that editors must learn to work around.
      Reply Reply
    2. June 6, 2016 9:00 PM
      Gossamer Gossamer is offline
      Junior Member
      Is that the same situation on XenForo? I'm running it on a XenForo forum, not VBulletin. I've never noticed any loss of lines when using alignment bbcodes on XF before.
      Reply Reply
    3. June 7, 2016 10:09 AM
      pegasus pegasus is offline
      VaultWiki Team
      The design of the alignment tags on XenForo is the same (it will remove line breaks after the tag). You usually will not notice the behavior, because the final HTML from the tag forces content after it onto the next line anyway, due to the rules of HTML block-level tags. However, since line breaks are used partly to determine the start of new cells or rows in the TABLE BB-Code, this behavior is undesirable.

      It might be possible to circumvent the default behavior in XenForo, since XenForo is easier to modify. I will investigate that possibility.
      Reply Reply
    4. June 7, 2016 11:15 AM
      pegasus pegasus is offline
      VaultWiki Team
      I have managed to successfully suppress this behavior in XenForo. So you will not have to remember to skip lines when using certain tags inside TABLE, starting with VaultWiki 4.0.12.

      In vBulletin, it is still necessary to skip lines when using those tags inside TABLE in non-wiki content.
      Reply Reply
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 11:27 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.