Opened 17 years ago
Closed 11 years ago
#9820 closed defect (bug) (wontfix)
Multiple newlines stripped from within MT import files
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 2.7.1 |
| Component: | Import | Keywords: | needs-patch |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Patch to insert newlines when relevant