Tags that add extra newlines

Be sure to read and follow the guidelines for our forums.

May 24, 2025 9:21 pm
We can track the tags that add extra newlines here.

First reported in a discussion thread Game Wiki [ref].

Keleth says:
(elsewhere) ... Do you mind starting a thread in Bugs with other bbcodes that need to have a newline at the end of if removed? ...
I will need to do some experimenting to find such a list, I don't recall all of the places I saw this behaviour, I just remember feeling the need to test every tag each time.

I will test on staging in case you have already found and fixed any.

code tags add newlines before and after the block.
May 27, 2025 6:36 am
table
abilities
code

Here is an example of these three tags and the newlines they add. Extra newlines on the left column, newline-free on the right.
It could be argued that tables should not butt against each other, but forcing the user to use [ /table][ table=htl] on the same line to get that result if they want it is hard to read. If we want a gap we can easily add however many newlines we want.
table1 row1
table1 row2

table2 row1
table2 row2

code

table3 row1
table3 row2
table1 row1
table1 row2
table2 row1
table2 row2
code
table3 row1
table3 row2

Abilities 1

Example ability 1 description

Abilities 2

Example ability 1 description

Abilities 1

Example ability 1 description

Abilities 2

Example ability 1 description

We are forced to say:

[abilities="Abilities 1"]
Example ability 1 description
[/abilities][abilities="Abilities 2"]
Example ability 1 description
[/abilities]


When it would be easier to read, and to find the start of 'Abilities 2' with:

[abilities="Abilities 1"]
Example ability 1 description
[/abilities]
[abilities="Abilities 2"]
Example ability 1 description
[/abilities]


Or, if we wanted a blank line between the two Abilities blocks:

[abilities="Abilities 1"]
Example ability 1 description
[/abilities]

[abilities="Abilities 2"]
Example ability 1 description
[/abilities]

[ +- ] code
[ +- ] screenshot for after the fix
May 27, 2025 11:58 am
Format can cause newline as well. I noticed this in a table where I was trying to have part of a cell alined right but the default was aligned left

something else


[ table ] something [ f=right ]else[ /f ][ /table ]
May 27, 2025 1:01 pm
Psybermagi says:
Format can cause newline as well. I noticed this in a table where I was trying to have part of a cell alined right but the default was aligned left

[ table ] something [ f=right ]else[ /f ][ /table ]
I believe that is because `text-align:` is a block level formatting option. It applies to a block, not part of a line (span).
spec says:
Describes how inline contents of a block are horizontally aligned ...
You might be able to use `something [ f=float:right]else[/f]` with a `float:right` to achieve what you seem to be looking for. (Also in table if you want one, though I am not sure why you have a table with no cells.)

You do not have permission to post in this thread.