• 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 3.x Series
    • Bug
    • Line Breaks Get Removed

    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: Line Breaks Get Removed

    • Issue Tools
      • View Changes
    1. issueid=2464 September 27, 2011 12:02 AM
      fasterfind fasterfind is offline
      New Member
      Line Breaks Get Removed
      Too many line breaks get stripped

      If I indent text, and I use line breaks before and after that indented text. Things look right in the editor, but are improperly formatted when the post itself is viewed.

      Forum posts are ok. Wiki posts start looking strange

      Forum posts are ok. Wiki posts start looking strange. See how I have a line above and below this indentation?
      wiki posts look like this. Not indented text here.
      Indented. No space above or below. All crammed together. If I make a line break in the editor, it disappears.
      wiki posts look like this. Not indented text here.

      Forum post, line space above and below. Formatted. Looks great!
      .
      If this was a wiki post instead of a forum post, it would look completely different, and the formatting would be ruined at any location where I had indented text.
    Issue Details
    Issue Number 2464
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Wiki Pages
    Status Not a Bug
    Priority 8 - Major Features / Enhancements
    Affected Version 4.0.0 Alpha 1
    Fixed Version (none)
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 27, 2011 1:35 AM
      pegasus pegasus is offline
      VaultWiki Team
      Tested it here and the behavior is the same between wiki post and regular post: https://www.vaultwiki.org/demo/Indent-Test

      Make sure that your line breaks are placed inside the INDENT tags, or they won't be preserved. vBulletin strips preceding and following line breaks from around block elements INDENT and LIST. This behavior is defined in the vBulletin post parser and is inherited without modification by the wiki parser class.

      Furthermore, from an HTML standpoint, a (line-break, indent) looks different from (indent > line-break) in exactly the way you've described and is expected behavior.

      If you're using the WYSIWYG editor, it will probably be difficult to determine whether the breaks are inside or outside, but this is vBulletin's limitation.
      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 2:30 PM.
    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 © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.