[wp-trac] [WordPress Trac] #9820: Multiple newlines stripped from
within MT import files
WordPress Trac
wp-trac at lists.automattic.com
Thu May 14 11:03:44 GMT 2009
#9820: Multiple newlines stripped from within MT import files
--------------------------+-------------------------------------------------
Reporter: IndigoJo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Import | Version: 2.7.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
When I imported entries from my old MT blog into a new Wordpress install,
I expected my multiple newlines to be preserved. This is because MT uses
them to form paragraphs; the Markdown or Text Control plugins can do the
same in Wordpress, but either way, if you strip them out, you get a huge
bundle of text which is difficult to read.
The problem appears to be in the wp-admin/import/mt.php file, which
ignores blank lines regardless of context. If a newline were added in the
event of a blank line when the context was body, comment, extended or
excerpt, the newlines would be preserved. The attached patch fixes this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9820>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list