PRE and Line Breaks
|Reported by:||anonymous||Owned by:||martinkou|
|Priority:||Normal||Milestone:||FCKeditor 2.5 Beta|
|Keywords:||SF EK SS Confirmed FireFox||Cc:||jaydaley@…, jefflv@…|
When I choose "Formatted" format and then write some text containing new line characters and/or indentation (tabulations) I get the incorrect html code.
I used FCKeditor 2.0 FC.
This is my first line. This is indented text.
Then I clicked on "Source" button in FCK and I got the following html code:
<pre>This is my first line.<br/> This is indented text.</pre>
First of all there is no indentation. Secondly, the PRE element tells visual user agents that the enclosed text is "preformatted", so there should be no html tags (e.g. BR) in it. It should be just what I had written with tabs and new line characters.
Thirdly, switching between source and editor (pressing "Source" button) increases number of BR tags. When I clicked for the first time I received only one BR, but after next click I got 2 BR tags, then 4 BR tags and so on. This is what I got after three switches between "Source" and editor:
<pre>This is my first line.<br/> <br/> <br/> <br/> This is indented text.</pre>
Change History (18)
comment:14 Changed 9 years ago by fredck
- Cc jaydaley@… jefflv@… added
- Reporter changed from fredck to anonymous
comment:15 Changed 9 years ago by fredck
- Keywords Confirmed FF added
- Milestone set to FCKeditor 2.5
- Version set to FCKeditor 2.3.2
comment:17 Changed 9 years ago by martinkou
- Owner set to martinkou
- Status changed from new to assigned