No line breaks or double lines in wp editor/post/page

Having Problems? Need Help? Post here!

No line breaks or double lines in wp editor/post/page

Postby p2tu » Mon Feb 27, 2012 12:45 pm

Wordpress visual editor does not show line breaks, all text is in one line.
Breaks appear on site but it's impossible to edit content when editor shows different spacing...
I am using latest wp and development version of qtranslate (this bug was also in last qtranslate version).

AFAIK there's trhee fixes:

1. Following code in theme functions.php (Apparently it works only for pages not for posts wich will display double breaks (adds extra  ) instead no brakes...):
function cbnet_tinymce_config( $init ) {

// Don't remove line breaks
$init['remove_linebreaks'] = false;
// Convert newline characters to BR tags
$init['convert_newlines_to_brs'] = true;
// Do not remove redundant BR tags
$init['remove_redundant_brs'] = false;

// Pass $init back to WordPress
return $init;
}
add_filter('tiny_mce_before_init', 'cbnet_tinymce_config');

2. Follow instructions on this link, read comments too (it will mess up current spacing and you have to manually fix all spacing on site first time after this patch):
http://www.teslina.com/748/wordpress/qt ... ax-bugfix/

3. Downgrade to version 2.5.27 (possible problems with language duplication/overwriting):
http://wordpress.org/extend/plugins/qtr ... /download/

Any idea when qtranslate will work normally? :)
p2tu
 
Posts: 11
Joined: Wed Apr 13, 2011 6:07 pm

Re: No line breaks or double lines in wp editor/post/page

Postby MacVink » Mon Feb 27, 2012 6:59 pm

I did the downgrade option but now QTranslate puts an extra line break before every first line in a page! (in HTML:  ) :cry:

How do you fix that?

Jeroen
MacVink
 
Posts: 3
Joined: Wed Apr 06, 2011 2:45 pm

Re: No line breaks or double lines in wp editor/post/page

Postby p2tu » Mon Feb 27, 2012 10:12 pm

I have no idea. I really hope this plugin will be fixed soon enough...
p2tu
 
Posts: 11
Joined: Wed Apr 13, 2011 6:07 pm

Re: No line breaks or double lines in wp editor/post/page

Postby MacVink » Tue Feb 28, 2012 8:06 am

What I discovered is this:

- in version 2.5.28 (latest at the moment) line breaks are removed.
- in the older 2.5.27: every page gets one extra line break on top (in the begin of the content).

The extra linebreak in 2.5.27 can be removed in the html-mode by:
1. remove the   at top of the page
2. update your page
3. remove the   again
4. update again
5. now the line break is gone

I have Wordpress 3.3.1
I tried QTranslate: 2.5.27 and 2.5.28

It hope these issues will be fixed soon...
MacVink
 
Posts: 3
Joined: Wed Apr 06, 2011 2:45 pm

Re: No line breaks or double lines in wp editor/post/page

Postby Ginchen » Wed Feb 29, 2012 8:38 pm

Thanks for the solutions, p2tu!
The first method with the theme's functions.php is a fine workaround until the problem is solved. :)
Ginchen
 
Posts: 25
Joined: Mon Dec 22, 2008 9:40 pm

Re: No line breaks or double lines in wp editor/post/page

Postby zsero » Thu Mar 01, 2012 11:39 pm

This is an absolutely serious bug!!!

It is just not possible to use qTranslate on a website like this!

The only good news is that functions.php hack works! But please, fix this plugin. Since I have been using it (more than a year now), there were ALWAYS this line adding (at the bottom, at the top, etc.), line removing bugs all the time! Why does this plugin has to tamper the lines at all? It should just work with the tags, without tampering the lines.
zsero
 
Posts: 9
Joined: Sun Aug 15, 2010 11:39 am

Re: No line breaks or double lines in wp editor/post/page

Postby MacVink » Sun Mar 04, 2012 6:40 pm

I agree. It's a serious bug. I have a lot of work to do after every time I update a page. :(
MacVink
 
Posts: 3
Joined: Wed Apr 06, 2011 2:45 pm

Re: No line breaks or double lines in wp editor/post/page

Postby harco » Wed Mar 07, 2012 3:25 pm

Thanks for the temporary workaround p2tu! Hope this bug gets fixed soon!
harco
 
Posts: 2
Joined: Wed Mar 07, 2012 2:44 pm

Re: No line breaks or double lines in wp editor/post/page

Postby Bev » Mon Mar 12, 2012 3:14 pm

I find that solution #1 will fix paragraph spacing but breaks lists by inserting excess <UL> tags on every page save. Anybody else?
Bev
 
Posts: 6
Joined: Mon Mar 21, 2011 7:59 pm

Re: No line breaks or double lines in wp editor/post/page

Postby jgomsi » Mon Mar 19, 2012 11:45 am

Hi!
I had the same issue myself, but I think I've solved it by instaling the plugin TinyMCE Advanced which has an option called "Stop removing the <p> and <br/> tags when saving and show them in the HTML editor". This keeps the line break tags where they should be :)

Thanks for this great plugin!
jgomsi
 
Posts: 1
Joined: Mon Mar 19, 2012 11:08 am


Return to qTranslate Support Forum

Who is online

Users browsing this forum: Google Adsense [Bot] and 9 guests