As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/

BBCode glitch?

ButlerButler 89 episodes or bustRegistered User regular
I've noticed that when you try to spoiler a list

[spoiler:5906a157d6]
    1. Like this 2. This happens
[/spoiler:5906a157d6]

Forgive me if this is old news, but I've never encountered this problem before.

Butler on

Posts

  • RocketScienceRocketScience Registered User regular
    edited November 2006
    This is a terrible blow to the many people who use the list tags on a daily basis.
      [spoiler:1a3c97e8ac]1.If you do it the other way around 2. every thing's OK[/spoiler:1a3c97e8ac]
      [list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac] [list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac] [list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac] [list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][list:1a3c97e8ac][spoiler:1a3c97e8ac]sort of[/spoiler:1a3c97e8ac]
    [/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac][/list:u:1a3c97e8ac]

    RocketScience on
  • SporkAndrewSporkAndrew Registered User, ClubPA regular
    edited November 2006
    Butler wrote:
    I've noticed that when you try to spoiler a list

    [spoiler:79ea21016d]
      1. Like this 2. This happens
    [/spoiler:79ea21016d]

    Forgive me if this is old news, but I've never encountered this problem before.

    The problem is that the BBcode is acting like HTML should.

    The spoiler tag is acting as an inline element, whereas the list is a block-level element. Inline elements only apply to elements that are on the same line block, as the name suggests. Block level elements like paragraphs, lists and divs are meant to inherit down until the element is closed..

    Just like it's not valid html to do this:
    <span>
    <ul>
    [*]text
    [/list]
    </span>
    

    In this case you'd have to put the span tag in the middle of each list item. So, in the case of the BBcode here you'd have to put it inside the list declaration..

    Man I'm not very good at describing things..

    SporkAndrew on
    The one about the fucking space hairdresser and the cowboy. He's got a tinfoil pal and a pedal bin
  • DaedalusDaedalus Registered User regular
    edited November 2006
    Butler wrote:
    I've noticed that when you try to spoiler a list

    [spoiler:f9057f26e1]
      1. Like this 2. This happens
    [/spoiler:f9057f26e1]

    Forgive me if this is old news, but I've never encountered this problem before.

    The problem is that the BBcode is acting like HTML should.

    The spoiler tag is acting as an inline element, whereas the list is a block-level element. Inline elements only apply to elements that are on the same line block, as the name suggests. Block level elements like paragraphs, lists and divs are meant to inherit down until the element is closed..

    Just like it's not valid html to do this:
    <span>
    <ul>
    [*]text
    [/list]
    </span>
    

    In this case you'd have to put the span tag in the middle of each list item. So, in the case of the BBcode here you'd have to put it inside the list declaration..

    Man I'm not very good at describing things..

    Then I submit that spoiler really ought to act as a block element, since it breaks paragraphs.

    Daedalus on
  • EchoEcho ski-bap ba-dapModerator mod
    edited November 2006
    Yep, this is a CSS issue, not BBCode.

    Echo on
  • JaninJanin Registered User
    edited November 2006
    Isn't it a BBCode issue? If it's generating invalid CSS, it needs to be fixed to not do so.

    Janin on
    [SIGPIC][/SIGPIC]
  • ButlerButler 89 episodes or bust Registered User regular
    edited November 2006
    I know what the problem is! There are too many numbers! The computer has too many numbers in it and they are making it crazy!

    Butler on
Sign In or Register to comment.