Upgraded to 1.4.1, now get double newlines in all posts!

Having trouble installing serendipity?
Post Reply
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

Upgraded to 1.4.1, now get double newlines in all posts!

Post by genesis »

Not sure what happened, but it appears that the "paragraph" tag in the HTML editor gets duplicated somewhere - I get double newlines now in all my new postings.

All the EXISTING material in the blog is ok.

Is there a parameter somewhere that got scrambled and I missed?
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

Post by genesis »

I figured out what's happening with the WYSIWIG editor (the HTMLAREA thing)

Its doing this to the text:

Code: Select all

<div class="serendipity_entry_body">
                <p>What's going on with this?</p><br />
<p>Time to test it out.</p>
            </div>
Notice the extra "<br />" tag. That's from the carriage return - and I assume that the HTMLAREA editor is inserting it, 'cause I sure as hell didn't stick it in there and when I put the editor in the "HTML" mode, its not there.

Is there a switch to turn that off? I tried grafting the old HTMLAREA editor into the directory tree and it refused to start.
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

Post by genesis »

Eh, this happens when you post using the non-WYSIWIG editor too.

Turn off the HTMLAREA, key in some text with a <P> between lines, and if you hit return, you wind up with a hard break in there too.

That's kind of a problem......
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

Post by genesis »

Nevermind - I found it.

Nl2br was enabled. Now why this DID NOT cause problems with 1.3 I don't know, but it does with 1.4.1.

I removed it from the active event list and the problem is gone.
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Glad you found it! Sorry nobody was awake to help you out...
Judebert
---
Website | Wishlist | PayPal
genesis
Regular
Posts: 28
Joined: Wed Jun 11, 2008 5:26 pm

Post by genesis »

Very odd that I HAD TO have that in the event list before (prior to 1.4.1) to avoid having no breaks between paragraphs tho.

Heh, it is what it is; its fixed and that's the important part :)
Post Reply