Ticket #404 (closed Bug: fixed)
PRE and Line Breaks
| Reported by: | anonymous | Owned by: | martinkou |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
| Component: | General | Version: | FCKeditor 2.3.2 |
| Keywords: | SF EK SS Confirmed FF | Cc: | jaydaley@…, jefflv@… |
Description
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.
I wrote:
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>
Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1209755&group_id=75348&atid=543653