views:

316

answers:

3

Wordpress doesn't allow to insert more than 2 new lines in a post, anyone knows how to avoid that?

+1  A: 

Is Wordpress removing the newlines or are they not being shown in the rendered page (i.e. they are there when you view the page source but the browser does not show them?) White-space gets collapsed in HTML rendering unless it is inside <pre> tags or a element styles with white-space: pre[-line|-wrap]. You can force multiple newlines with a <br> tag.

beggs
A: 

I know this is really ugly, but you can try to add

<p>&NBSP;</p>
<p>&NBSP;</p>
<p>&NBSP;</p>
(use the entity "&NBSP;" in lowercase, I did it in uppercase in the above 
 example because SO editor didn't allow me to do it, how ironic :)

in the html view and, without clicking in "Visual" again, click in "update post". This way the visual editor won't try to filter the tags.

However, if you edit the post again, you're going to need to repeat this step if it enters in "Visual" mode.

Again, really ugly in my opinion, but at least it works if you really need it. I tested in Wordpress 2.8.4.

GmonC
A: 

solved creating a plugin

fabbrillo