Ticket #1355 (closed Bug: fixed)
Converting <p> to <pre> may add additional line breaks
| Reported by: | fredck | Owned by: | martinkou |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6 |
| Component: | General | Version: | SVN |
| Keywords: | Review+ | Cc: |
Description
Steps to Reproduce
- Load the following HTML:
<p>Line 1<br /> Line 2<br /> Line 3</p>
- Change the paragraph Format to "Formatted".
Note that each line has been separated by a double line break. It doesn't happen if we have the following <p> instead:
<p>Line 1<br />Line 2<br />Line 3</p>
Things get even worst if the initial <p> looks like this:
<p>
Some
sample
</p>
It is evident that the whitespace of the original <p> is being preserved on the transformation, but the expected result for the above case is:
<pre>Some sample</pre>
This is not a problem with IE, as it automatically eats whitespaces when parsing.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.