Active
Project:
Bbcode
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2008 at 21:22 UTC
Updated:
30 Nov 2008 at 10:01 UTC
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
Comment #1
guido666 commentedAlso, moving the period UP to the first line, like...
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.
Comment #2
naudefj commentedWhat is your setting for "Smart paragraph and line breaks"?