Editor - Lists and text format

  • The line breaks in between list items in BBCode are purely cosmetic and are stripped anyway. Since they have no meaning, they are not inserted when converting to BBCodes, because they are pointless.

    Please understand that converting HTML into BBCode is always just an approximation, not an equal view.

  • The line breaks in between list items in BBCode are purely cosmetic and are stripped anyway. Since they have no meaning, they are not inserted when converting to BBCodes, because they are pointless.

    Please understand that converting HTML into BBCode is always just an approximation, not an equal view.

    Sorry, but when I have to check a incorrect bbcode in more than 20.000 words (in more than 650 lines), the format is very important for me.

    Example: A quiz with 80 questions (numbered list) and 3 options available (lower latin list).

    Edited once, last by Aethior (January 26, 2015 at 7:17 PM).

  • I understand the idea behind this, but the issue lies in the conversion from BBCode -> HTML and vice versa. All it does is to make assumptions on how the message markup should look like, because there is no exact translation.

    Initially I had new lines added after a list item, but that caused troubles because they were incorrectly treated as actual line breaks instead of something purely cosmetic. My problem is to adjust the parser to know exactly which part of the message was just inserted for readability, but should be stripped away. In return when converting back to BBCode it must add this stuff back in, but obey different rules when it comes to nested content.

    Anyway, I will see if I can gift you some line breaks there.

  • So, I've worked on this and came up with a pretty solid solution which increases readability while preventing it from interpreting linebreaks as actual empty lines. Considering your example in the video, the BBCode will now look like this:


    As you can see I have no newlines between [list][*] and [/list][*], but inserting linebreaks there screws up a lot of stuff.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!