When there is a new line immediately before or after a BBCode, it fails to put in a "BR".

For instance...

...this folder is [b]C:\Program Files\[/b]
.[img]/sites/default/files/FolderInExplorer.png[/img]

... ends up HTML like...

...this folder is <span style="font-weight:bold">C:\Program Files\</span>
.<img src="/sites/default/files/FolderInExplorer.png" alt="" class="bb-image" /><br />

Which renders in a browser "like"...
...this folder is C:\Program Files\ .[IMAGE HERE ON THIS LINE]

Notice the period on the second line, before the image. I put that there intentionally to see if that would help the BBCode filter tell the lines apart. IT DOES NOT. It works the same with or without it.

Interestingly, the built in (Drupal) linebreak converter does the same thing.

Comments

guido666’s picture

Also, moving the period UP to the first line, like...

...this folder is [b]C:\Program Files\[/b].
[img]/sites/default/files/FolderInExplorer.png[/img]

does the exact same thing.

The line break converter is getting confused somewhere, and can't figure out that there is a new line in there.

naudefj’s picture

What is your setting for "Smart paragraph and line breaks"?