Best practice forum (Archived)

Line breaks not showing up in topics

 
? ?
Line breaks not showing up in topics
by ? ? - Thursday, 28 April 2011, 11:24 PM
 

I noticed after upgrading to Totara v1.0.7 that when i add in extra line breaks to topic summaries, labels, summaries, etc in courses they disapear when the changes are saved.

eg.

<h2>Heading 1</h2>
<p>this is paragraph 1 text</p>
<p></p>
<p></p>
<p></p>
<h2>Heading 2</h2>
<p>this is paragraph 2 text</p>

appears like

Heading 1

this is paragraph 1 text

Heading 2

this is paragraph 2 text

I even tried adding in <br> and <p> tags in the html code, but still doesn't display.

It even hapened when i tried to type it in this forum post. so i replaced the first example with html code...

how can i fix this?

Simon Coggins
Re: Line breaks not showing up in topics
by Simon Coggins - Tuesday, 3 May 2011, 2:12 PM
Group Totara

Hi Ira,

As a temporary fix, it seems if you hit enter, then space, then enter then space it doesn't remove the extra lines:

 

 

 

I will look into what caused this - we recently upgraded the HTML editor to a more recent version which fixed some bugs but seems to have caused some more.

Simon

Simon Coggins
Re: Line breaks not showing up in topics
by Simon Coggins - Monday, 9 May 2011, 9:54 PM
Group Totara

We have provided a fix for these issues in version 1.0.10, released today (10th May).

It should fix many of the issues you were seeing with elements being removed from the HTML. Multiple empty paragraphs are still collapsed into a single paragraph but that seems to be a feature of HTML rather than the editor (the multiple paragraphs still exist, they just aren't appearing as such).

We are going to look into more improvements to TinyMCE over the next few weeks.

Simon