Fixed Improve margin around [LIST] bb code

Affected version
2.1.1

Steffen

Well-known member
Consider this BB code:
Code:
Foo

[LIST]
[*]List item
[/LIST]

Bar
It results in this post:

200354

Could XenForo use the same margin above the list as below the list?
 

niemiro

New member
I second this. We have the same on our forum and it's quite annoying and a regression from vBulletin. It would be really nice if it were fixed :)
 

Chris D

XenForo developer
Staff member
This is a regression from XF 1.5 and 2.0 too. Not certain it will be what you're expecting, but the key regression is that in XF1 we would trim a total of 1 line breaks from the end of the LIST tag. In XF2.1 we started trimming 2 for some reason. It seems to be deliberate but I think I agree it should be consistent. This may well resurface some edge case that required the change...

But rather than this:

200934

We actually intend for it to look like this:

200935

The <ul> tag itself comes with its own margin so to tighten it up we'd recommend not inserting your own line breaks before or after the opening or closing list tag.
 

Steffen

Well-known member
Or maybe you could trim two line breaks above the list, too?

I think that would allow for more readable BB code (with an empty line before [LIST] and after [/LIST]). :)
 

XF Bug Bot

XenForo bug fixer bot
Staff member
Thank you for reporting this issue. It has now been resolved and we are aiming to include it in a future XF release (2.1.2).

Change log:
Make the line trimming around BB code list tags more consistent.
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Top