[wp-trac] [WordPress Trac] #46378: html line break does not work

WordPress Trac noreply at wordpress.org
Thu Feb 28 18:57:35 UTC 2019


#46378: html line break does not work
--------------------------+-----------------------------
 Reporter:  mbbrown       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I am trying to force line breaks for lines of text within an <address> tag
 or <p> tag.

 I would like my content to appear like this on the page (example 1):

 University of Oulu
 Pentti Kaiteran katu 1
 90014 Oulu, Finland

 Instead of like this (example 2):

 University of Oulu Pentti Kaiteran katu 1 90014 Oulu, Finland

 When I add a <br> tag using the html code editor and update the page, the
 <br> tag disappears and fails to affect the appearance of the content (see
 example 2 above). The same thing happens when I use a <p> tag for each
 line of text: the <p> tag disappears in the html code editor, and my text
 appears on the page like example 2.

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


More information about the wp-trac mailing list