[wp-trac] [WordPress Trac] #24615: Non-embedded urls in paragraphs are rendered as paragraphs.

WordPress Trac noreply at wordpress.org
Fri Jun 21 04:17:18 UTC 2013


#24615: Non-embedded urls in paragraphs are rendered as paragraphs.
--------------------------+-----------------------------
 Reporter:  mfields       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  3.2
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When a URL is on it's own line and mixed in with other text on lines
 before and after, WordPress gives the link it's own paragraph instead of
 including it inside the paragraph suggested by the surrounding text. Here
 is a better explanation with code samples:

 Enter the following text into the visual or text tabs of the post editor:

 {{{
 one
 two
 http://three.me/
 four
 five
 }}}

 The content will display as intended in each editor. The issue occurs when
 it is displayed on the front end. It's expected that markup similar to the
 following will be generated: one paragraph with 4 `<br />`s separating
 each of the five lines.

 {{{
 <p>
 one<br />
 two<br />
 <a href="http://three.me/" rel="nofollow">http://three.me/</a><br />
 four<br />
 five
 </p>
 }}}

 Instead, the following markup is produced. 3 unique paragraphs are created
 - one for the URL and one for each bit of content before and after the
 URL.

 I've tested with trunk and wp3.2 locally and I get a similar markup (only
 the url is not linked):

 {{{
 <p>one<br />two</p>
 <p>http://three.me/</p>
 <p>four<br />five</p>
 }}}

 I've tested this both in the latest trunk as well as 3.2.1 with the same
 result.

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


More information about the wp-trac mailing list