Make WordPress Core

Opened 17 years ago

Closed 11 years ago

#9820 closed defect (bug) (wontfix)

Multiple newlines stripped from within MT import files

Reported by: indigojo's profile IndigoJo 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)

patch.mt.php (856 bytes) - added by IndigoJo 17 years ago.
Patch to insert newlines when relevant

Download all attachments as: .zip

Change History (8)

@IndigoJo
17 years ago

Patch to insert newlines when relevant

#1 @Denis-de-Bernardy
17 years ago

  • Milestone changed from Unassigned to 2.8

#2 @Denis-de-Bernardy
17 years ago

  • Milestone changed from 2.8 to Future Release

punting pending patch

#3 @Denis-de-Bernardy
17 years ago

  • Keywords needs-patch added

#4 @Denis-de-Bernardy
17 years ago

  • Milestone changed from Future Release to 2.9

#5 @janeforshort
16 years ago

  • Milestone changed from 2.9 to Future Release

This ticket hasn't had any community activity. Need to see some people testing it etc. Punting because we're in beta.

#6 @SergeyBiryukov
14 years ago

  • Milestone changed from Future Release to WordPress.org

#7 @chriscct7
11 years ago

  • Milestone WordPress.org deleted
  • Resolution set to wontfix
  • Status changed from new to closed

No requests in 7 years. Closing as wontfix

Note: See TracTickets for help on using tickets.