A similar bug appears with [code] bb-code, and probably anything else which is multiple lines;
[indent]
[code]
1
2
3
[/code]
[/indent]
Turns into;
[INDENT][/INDENT]
[INDENT][code][/INDENT]
[INDENT]1[/INDENT]
[INDENT]2[/INDENT]
[INDENT]3[/INDENT]
[INDENT][/code][/INDENT]
[INDENT][/INDENT]
Wrapping the indent tag around the code block then causes massive round-trip issues as it continuously adds more indent tags.
This appears to affect any "block" bb-code in XenForo which can have HTML formatting wrapped around what is expected to be bb-code.
List;
[B]1
[list]
[*]2
[/list]
3
[/B]
Becomes;
[B]1
[/B]
[LIST]
[*][B][LIST]
[*]2
[/LIST][/B]
[/LIST]
[B]3[/B]