Confirmed Nested lists do not round-trip as expected when toggling bb-code mode on/off

Xon

Well-known member
Licensed customer
Affected version
2.2.13
Toggling the following bb-code causes the DD line to evaporate and a bunch of new lines to be unexpectedly added.
Code:
[LIST]
    [*][B]AA
    [LIST]
        [*][B]BB[/B]
        [*][B]CC[/B]
    [/LIST][/B]
    [*][B]DD
    [LIST]
        [*][B]EE[/B]
        [*][B]FF[/B]
    [/LIST][/B]
[/LIST]
This is the mangled bb-code output
Code:
[LIST]
[*][B]AA
    
[LIST]
[*][B]BB[/B]
       
[*][B]CC[/B]
   
[/LIST][/B]
   
[LIST]
[*][B]EE[/B]
       
[*][B]FF[/B]
   
[/LIST]
[/LIST]

This impacts the final html output. Instead of;
  • AA
    • BB
    • CC
  • DD
    • EE
    • FF

It renders;
  • AA

    • BB
    • CC
    • EE
    • FF
 
Back
Top Bottom