esotalk / esoTalk

Fat-free forum software.
GNU General Public License v2.0
1.47k stars 236 forks source link

Strange rendering of BBcode "code" tag #436

Closed dcsjapan closed 9 years ago

dcsjapan commented 9 years ago

Here's some information about the information I mentioned in the forums here:

http://esotalk.org/forum/1954-extra-line-break-after-bbcode-code-box

It seems like the BBcode plugin now adds an extra line break after a code box; this is something new in G5 that it wasn't doing in G4. It's pretty much an aesthetic issue (it makes posts with many code boxes take up more screen space than they should), so unless it's a very quick fix, please don't worry too much about it.

Here's a sample post to demonstrate:

codespacing screenie 1

The above post is rendered like so:

codespacing screenie 2

And here's the source for that, with the extra line break indicated:

screen shot 2015-07-20 at 5 49 55

Looking at the source, it seems there's more to this issue than just an extra line break. There's also a closing paragraph tag with no opening tag to match.