automatic line breaks in comments
|Reported by:||Dunkelangst||Owned by:|
WordPress 2.8.6 has got a Problem with the automatic line break.
Type the following comment in a WordPress Blog.
Thank you for your comment!<blockquote>this is a small quote</blockquote> Next Text
Then you have to save the comment. If you validate the your publish, you will see, that the sentence "Thank you for your comment!" will be put into the following absurd tags:
p>Thank you for your comment!<br />
If you write a comment with the following code (hit return after the word comment! ),
Thank you for your comment! <blockquote>this is a small quote</blockquote> Next Text
you will get the right codeform when you validate your comment:
<p>Thank you for your comment!</p>
The same Problem exists when you type
test 2 <p> break </p> next text
After the word test 2 you will miss the </p>.
WordPress has got this bug with every single elements like these one:
<p>, <ul>, <ol>, <li>, <h1> bis <h6>, <div>, <blockquote> etc.
When you make manuell a new line in front of these elements, you won't find any problem, so WordPress must put an automatic line break in front of these elements and it doesen't do it. Please fix this nerved bug!!
regards, Dunkelangst from http://www.dunkelangst.org/
Change History (8)
- Component changed from General to Formatting
- Milestone changed from Unassigned to 3.0
- Summary changed from automatic line break to automatic line breaks in comments
- Keywords wpautop needs-patch added
- Milestone changed from 3.0 to Future Release