Non-embedded urls in paragraphs are rendered as paragraphs.
|Reported by:||mfields||Owned by:|
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.
Change History (2)
comment:1 @Viper007Bond — 2 years ago
- Keywords needs-patch added