[wp-trac] [WordPress Trac] #30704: Additional <br />-tags inserted into html

WordPress Trac noreply at wordpress.org
Sat Dec 13 14:31:34 UTC 2014


#30704: Additional <br />-tags inserted into html
-----------------------------+-----------------------------
 Reporter:  Gerhard Mueller  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Editor           |    Version:  4.0.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 When I enter html text in the "Text" area of the editor, <br /> tags are
 added to the code generated for each linebreak where plain text might be
 allowed.
 This happens in Firefox (34.0.5) under Windows-7 (64 bit). Tried with
 WordPress 3.8.1 and 4.0.1.
 Example:
 "This is
 one line"
 is changed to
 "This is<br />
 one line"
 This does not happen when the line ends with <br /> or, e.g. </td>
 But it also happens when the parameters of a tag are spread over several
 lines.

 I think it is correct to insert a <br /> into the final code when a
 linebreak occurs in the "Visual" area of the editor. But this must already
 show up in the "Text" area created on the basis of the visual input.
 Inserting it later is just one step too late.

 A line break in the "Text" area, i.e. the area for the html code, is just
 a "white space" according to the rules of html, no more, no less.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30704>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list