[wp-trac] [WordPress Trac] #25785: Unexpected Paragraph Formatting Within a Div Container

WordPress Trac noreply at wordpress.org
Thu Oct 31 02:01:15 UTC 2013


#25785: Unexpected Paragraph Formatting Within a Div Container
--------------------------+-----------------------------
 Reporter:  EMG           |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Post Formats  |    Version:  3.7
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 Though HTML mode in WordPress allows for the user to add in their own CSS
 styling and HTML content formatting if necessary, its normal behavior also
 makes it auto-format paragraph breaks without the user's input of
 paragraph tags.  This is EXPECTED behavior.

 I have discovered that in this specific manner of formatting when writing
 a post or page (note the LACK of spacing between the div tag and the
 content and the multiple paragraphs):

 {{{
 <div>Insert FIRST PARAGRAPH here.

 Insert SECOND PARAGRAPH here.</div>
 }}}

 The end result (both visually and looking at the source code) is that
 there is a MISSING opening paragraph tag at the beginning of the first
 paragraph right after the opening div tag.

 IF the user adds their own spacing between the divs and the content,
 paragraph formatting with happen on its own, but if the user doesn't add
 in the spacing and starts the paragraphed content right after the div like
 in the example above, the first paragraph tag isn't automatically added
 in.

 For a screenshot of the end result source code that is generated (with the
 missing opening paragraph tag), please see the attached file.

 Cheers!

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25785>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list