[wp-trac] Re: [WordPress Trac] #3476: <object> elements should not
be put on their own line by wpautop
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 4 17:26:52 GMT 2007
#3476: <object> elements should not be put on their own line by wpautop
--------------------------+-------------------------------------------------
Reporter: Viper007Bond | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.1
Component: General | Version: 2.1
Severity: major | Resolution:
Keywords: needs-patch |
--------------------------+-------------------------------------------------
Comment (by rbeentje):
The issue with new lines is a bug, as far as I can see, rather than any
behavioral choices.
Looking at Revision 4672:
http://trac.wordpress.org/browser/branches/2.0/wp-includes/functions-
formatting.php?rev=4672
Line 68 adds a linebreak before block-level tags, for code appearance (as
far as I can tell). However, line 80 converts linebreaks left over after
auto-paragraphing to <br />s - so all that lovely code formatting is
converted to visible formatting.
My solution has been to move lines 68 and 69 to the bottom of the
function, because as far as I know these are only for code formatting.
Anybody in the know care to comment?
--
Ticket URL: <http://trac.wordpress.org/ticket/3476#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list