samclarke / SBBCodeParser

BBCode Parser Class
http://www.samclarke.com/
24 stars 15 forks source link

Too much break lines #2

Closed Cretezy closed 6 years ago

Cretezy commented 11 years ago

Hey! Ok, so my bbcode is: " Hey Hello Moo "

But it outputs as " Hey < br > < br > Hello < br > < br > Moo < br > < br > "

How can I remove that second < br > ?

(Added a space in br because Github was parsing it)

LiamDawe commented 10 years ago

I can confirm this is an issue, way way too many new lines are processed.

diegargon commented 10 years ago

I comment line 697 on Documment.php and fix that. Not ask. :P

//$str = preg_replace('/[\r\n|\r]/', "\n", $str);