Logged Out
Create an Account
Login:
Password:

Forgot your password?
BBCode Inserting <br>'s at the end of <li>'s

BBCode Inserting <br>'s at the end of <li>'s
[Back to Index]  [Bottom of Thread]
Thread Tags
Primary: [Tickets]
Secondary: None
BBCode Inserting <br>'s at the end of <li>'s
Go To This Ticket's Page
Creator Nevir
Public or Private Public
Private tickets are only accessible to you and to DKPSystem.com staff
Public Tickets are visible to everyone)
Status Closed
Type Bug
Section of the Site Forum
Urgency (2 votes)
Rating (2 votes)
Description:
Your BBCode parser is inserting <br>'s after a </li> with a newline

here's a quick fix that you can stick in before you do a nl2br() call; I'm guessing:

str_replace("</li>\n", "</li>", $post)

Or a bit more correct, but slower:

preg_replace("/<\/li>\s*\n/", "</li>", $post)
Official DKPSystem.com Comments
No official comments yet
Thanks for the heads up. I thought I had done that already, but I guess not.

--
It's all in the reflexes.


[Back to Index]  [Top of Thread]